Previous: RunError procedure To the Table of Content Next: SeekEof procedure

- 4.62.2.76 -
Standard Units
System Unit
System Unit Procedures and Functions

Seek procedure

Targets: MS-DOS, OS/2, Win32


System Unit

Moves the current position of a file to a specified component.

Declaration:
procedure Seek(var  F; NewPos: Longint);
Remarks:
F is a file of any type except text.
NewPos is the record or component to move the file pointer to.

Seek works only on open files and cannot be used with text files. The first component of any file is zero. With {$I-} IOResult returns an error code if an error occurred, otherwise it is set to zero.

See also:
{$I} - I/O Checking Switch


Previous: RunError procedure To the Table of Content Next: SeekEof procedure
RunError procedure Table of Content SeekEof procedure

- 4.62.2.76 -