User Tools

Site Tools


en:eof

Eof (Function)

Format

eof
eof()
eof(open_file_number)

returns boolean_expression

Description

Returns a binary flag (true/false) that will signal if we have read to the End Of File (EOF). If file number is not specified then file number zero (0) will be used.

If the open file number is a serial port (opened with OpenSerial) then EOF returns a true value when there is pending data to receive. EOF that we are at the end of data but with this type of data source, new data may be received at any time. This behaviour is different than with a file.

See Also

History

0.9.4New To Version
1.1.4.0Added serial port logic
en/eof.txt · Last modified: 2020/02/28 10:46 (external edit)