FIO.Puts |
noofchars = FIO.Puts( file-id AS INTEGER, string AS STRING ) AS INTEGER
Writes string to a previously opened text file and returns the number of characters written.
Example:
$LIBRARY "MyBASIC2_ExtLib.dll"
i=fio.create("d:\fff.txt")
IF i > -1 THEN PRINT fio.puts( i, "Kalle Anka was here today" ), fio.close(i) ENDIF
i=fio.open("d:\kalle.txt")
if i > -1 THEN WHILE fio.eof(i) = 0 str$=fio.gets( i ) PRINT str$ WEND fio.close(i) ENDIF
END
|