- Documentation
- Shared functions
- fileIsEOF
Function
fileIsEOF
Checks whether the file position has reached the end.
Syntax
bool fileIsEOF(file theFile)Arguments
theFilefile- A file handle.
Returns
true at the end of the file.
Example
local file = fileOpen("lines.txt", true)
local text = ""
while not fileIsEOF(file) do text = text .. fileRead(file, 1024) end
fileClose(file)