November 2003
Beginner to intermediate
480 pages
15h 3m
English
get eof — get file end position
Returns the 1-based index of the last character of a file (which is also the size of the file).
Because character positions are 1-based, and because the eof is the position of the last character, if you want to append to a file you must start writing at a position one greater than the eof. That is the largest position at which you are permitted to start writing.
write "Howdy" to f set ourEof to get eof of f write "Doody" to f starting at ourEof + 1
Read now
Unlock full access