Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

Seek64

Changes the current read/write position in a file

Declaration

Source position: amigados.pas line 2293

function Seek64(

  fh: LongInt;

  Position: Int64;

  Mode: LongInt

):Int64;

Arguments

fh

  

filehandle

Position

  

relative offset in bytes (positive, negative or 0).

Mode

  

Where to count from. Either OFFSET_BEGINNING, OFFSET_CURRENT or OFFSET_END.

Function result

Absolute position in bytes before the Seek64(), -1 if an error happened. IoErr() will give additional information in that case.

Description

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.


Documentation generated on: 2021-07-30