fread_char — Read a character from a file.
The operator fread_char reads a character from the input file defined by FileHandle. The read character or control string sequence is returned in parameter Char. If no character can be read because the end of the file is reached, fread_char returns the character sequence 'eof'.
Read character or control string ('eof').
* Read a file character by character. open_file (FileName, 'input', FileHandle) repeat fread_char (FileHandle, Char) until (Char == 'eof') close_file (FileHandle)
If an input file is open, the operator fread_char returns 2 (H_MSG_TRUE). Otherwise, an exception is raised.
fread_string, read_string, fread_line
open_file, close_file, fread_string, fread_line