Purpose
Moves the cursor used for reading and writing in a file on the FCAS computer.
Syntax
File.Position (Origin [, Offset])
Position |
Moves the position of the cursor in a file in the file system. |
Origin |
Specifies the starting point, using one of the following: |
|
fcBegin |
File cursor origin at the beginning of file. |
|
fcEnd |
File cursor origin at the end of file. |
|
fcCurr |
File cursor origin at the current position (unchanged). |
Offset |
Specifies the number of bytes to move from that location. A + value indicates a move forward. A - value indicates a move backward. |
Example
MyFile.Position (fcBegin) 'position cursor at beginning of file'
MyFile.Position (fcEnd, -10) 'position cursor 10 characters back from end of file'
|