RawFile.setPosition
From Spheriki
Get the position of the file cursor within the file to read from or write to.
Contents |
Usage
- rawfile Sphere RawFile object. The file handle to set the position within.
- position number, non-negative. The number of bytes along the file to set the position to.
Examples
See examples for RawFile.getPosition().
Notes
- The position is zero-based, where zero is situated in front of the first byte in the file.
- RawFile objects have a cursor, which indicates the position in the file from which data is read or is written to. This function can obtain that position.
- To get the position of the file cursor, use RawFile.getPosition().
See also
- Sphere RawFile object