EOF
Jump to navigation
Jump to search
The EOF function indicates that the end of a file or HTTP response has been reached.
Syntax
Description
- fileNumber& or httpHandle& is the number of the file or HTTP connected being read. # is not required.
- fileNumber& is a file opened using OPEN.
- httpHandle& is a HTTP connection opened using _OPENCLIENT.
- Returns 0 until the end of a file. This avoids a file read error.
- Returns -1 (true) at the end of the file.
- Note that GET can return invalid data at the end of a file. Read EOF after a GET operation to see if the end of the file has been reached and discard last read.
- This is not a problem when using EOF with HTTP connections with a variable length string, the string will always only contain valid data or be empty.
See also