FileSetPosition()

Summary

Sets the current Read/Write position of a file.

Syntax

FileSetPosition(file f, integer pos)

Argument Contents
f The handle of the file
pos The desired position in the file

Notes

  • The position is zero based.

Error Codes

Error Type Meaning
Error File is not open, or the position is beyond the end of the file

See Also

Function Summary
OpenFile() Opens a text or binary file
FileAtEOF() Tests to see if the end of a file has been reached
FileGetPosition() Gets the current Read/Write position of a file