Operators |
fread_line — Read a line from a file.
fread_line( : : FileHandle : OutLine, IsEOF)
The operator fread_line reads a line from the current input file (including the line skip) defined by the handle FileHandle. The input file must be opened in ASCII format. The read line is returned in parameter OutLine. If the end of the file is reached, IsEOF returns the value 1, otherwise 0.
The maximum string length is 1024 character (including the end of string character).
File handle.
Read line.
Reached end of file.
do { fread_line(FileHandle,&Line,&IsEOF) ; } while(IsEOF==0) ;
If the file is open and a suitable line is read, fread_line returns the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.
open_file, close_file, fread_char, fread_string
Foundation
Operators |