fileReadLine |
|
fileReadLine( const handle) // file handle Reads a line from file. For best results the file should not be opened in binary mode (otherwise there may be cr's at the end of the returned text). Check for eof before reading. Returns the line (the terminating LF character is removed). Example: // show contents of file test.txt var fh = fileOpen('test.txt', fileOpenRead); while (!fileEof(fh)) sysLog(fileReadLine(fh)); fileClose(fh); | ||||||||
Copyright © IBK Landquart | Last revised by Peter Koch, 24.02.00 | << Back Top Next >> |