====== ftell ======
===== Description =====
Get the current position in a file stream.
===== Function prototype =====
int64 ftell
===== Arguments =====
^ Name ^ Type ^ Comment ^
| hFile | voidptr | A handle to a file, the current stream position of which is to be determined. |
===== Return value =====
===== Example =====
voidptr fp
set fp
assert fp "Cannot open file!"
string s
set s "Hello!"
fwrite fp s
echo // write the current file position to the event log
fclose fp
... the output of which is written to the event log by [[plugins:general:zeoscript:reference:functions:echo]] as:
6
===== Comments =====
None.
===== See also =====
* [[plugins:general:zeoscript:reference:functions:fopen]]
* [[plugins:general:zeoscript:reference:functions:fopen_s]]
* [[plugins:general:zeoscript:reference:functions:fclose]]
* [[plugins:general:zeoscript:reference:functions:fread]]
* [[plugins:general:zeoscript:reference:functions:fwrite]]
* [[plugins:general:zeoscript:reference:functions:fgetc]]
* [[plugins:general:zeoscript:reference:functions:fputc]]
* [[plugins:general:zeoscript:reference:functions:fseek]]
* [[plugins:general:zeoscript:reference:functions:rewind]]