Name
fread_stringfread_stringFreadStringFreadString — Read strings from a file.
The operator fread_stringfread_stringFreadStringFreadStringFreadString reads a string from the current
input file defined by the handle FileHandleFileHandleFileHandleFileHandlefileHandle.
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
OutStringOutStringOutStringOutStringoutString.
If the end of the file is reached, IsEOFIsEOFIsEOFIsEOFisEOF returns the
value 1, otherwise 0.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
fwrite_string(FileHandle,'Please enter text and return: ..')
fread_string(FileHandle,String,IsEOF)
fwrite_string(FileHandle,['here it is again: ',String])
fnew_line(FileHandle)
fwrite_string(FileHandle,"Please enter text and return: ..") ;
fread_string(FileHandle,&String,&IsEOF) ;
fwrite_string(FileHandle,"here it is again: ") ;
fwrite_string(FileHandle,String) ;
fnew_line(FileHandle) ;
fwrite_string(FileHandle,'Please enter text and return: ..')
fread_string(FileHandle,String,IsEOF)
fwrite_string(FileHandle,['here it is again: ',String])
fnew_line(FileHandle)
fwrite_string(FileHandle,'Please enter text and return: ..')
fread_string(FileHandle,String,IsEOF)
fwrite_string(FileHandle,['here it is again: ',String])
fnew_line(FileHandle)
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_stringfread_stringFreadStringFreadStringFreadString
returns the value 2 (H_MSG_TRUE).
Otherwise, an exception is raised.
open_fileopen_fileOpenFileOpenFileOpenFile
close_fileclose_fileCloseFileCloseFileCloseFile
fread_charfread_charFreadCharFreadCharFreadChar,
read_stringread_stringReadStringReadStringReadString,
fread_linefread_lineFreadLineFreadLineFreadLine
open_fileopen_fileOpenFileOpenFileOpenFile,
close_fileclose_fileCloseFileCloseFileCloseFile,
fread_charfread_charFreadCharFreadCharFreadChar,
fread_linefread_lineFreadLineFreadLineFreadLine
Foundation