fileSetPos
Shared
Changes a file's read and write position.
int fileSetPos(file file, int offset)
Parameters
| Name | Type | Description |
|---|---|---|
| file | file | A file opened by fileOpen or fileCreate. |
| offset | int | The position in bytes from the start, 0 or more. |
Returns
The new position. A position past the end stays at the end.
Example
fileSetPos(file, 0) -- back to the start