|
Table of Contents
ftellDescriptionGet the current position in a file stream. Function prototypeint64 ftell <voidptr:hFile> Arguments
Return valueExamplevoidptr fp set fp <zs:fopen "c:\\test.txt" "w"> assert fp "Cannot open file!" string s set s "Hello!" fwrite fp s echo <zs:ftell fp> // write the current file position to the event log fclose fp … the output of which is written to the event log by echo as: 6 CommentsNone. See alsoExcept where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|