Changes the current read/write position in a file
Source position: amigados.pas line 2293
function Seek64( |
fh: LongInt; |
Position: Int64; |
Mode: LongInt |
):Int64; |
fh |
|
filehandle |
Position |
|
relative offset in bytes (positive, negative or 0). |
Mode |
|
Where to count from. Either OFFSET_BEGINNING, OFFSET_CURRENT or OFFSET_END. |
Absolute position in bytes before the Seek64(), -1 if an error happened. IoErr() will give additional information in that case.
Changes the current read/write position in a file and/or reads the current position, e.g to get the current position do a
Seek64(file, 0, OFFSET_CURRENT).
This function may fail (obviously) on certain devices such as pipes or console handlers.