fileFilePos

Returns the current position in an open file. Takes a file handle. Returns the current byte position within the file (0-based), or 0 if the handle is invalid.

File IO

Parameters & Returns

Parameters

fileHandle Int

Returns

Int

Quick Summary

Returns the current position in an open file. Takes a file handle. Returns the current byte position within the file (0-based), or 0 if the handle is invalid.

Technical Exegesis...

Returns the current byte position within the file associated with the specified handle. Returns 0 if the handle is invalid.

The position is the byte offset from the beginning of the file (0-based). Useful for saving and restoring file positions or determining how much has been read/written.

Example

Example.bam
; No example implemented yet