fread_string — Read strings from a file.
The operator fread_string reads a string from the current input file defined by the handle FileHandle. The input file must be opened in ASCII format. A string begins with the first representable character: letters, numbers, additional characters (except blanks). A string ends when a blank or a line skip is reached. Several successive line skips are ignored. The read character sequence is returned in parameter OutString. If the end of the file is reached, IsEOF returns the value 1, otherwise 0.
Read character sequence.
Reached end of file.
fwrite_string(FileHandle,'Please enter text and return: ..') fread_string(FileHandle,String,IsEOF) fwrite_string(FileHandle,['here it is again: ',String]) fnew_line(FileHandle)
If a file is open and a suitable string is read, fread_string returns the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.
fread_char, read_string, fread_line
open_file, close_file, fread_char, fread_line