Previous: 4.67.2.75. RunError procedure To the Table of Contents Next: 4.67.2.77. SeekEof procedure
4.67.2.75. RunError procedure Table of Contents 4.67.2.77. SeekEof procedure

- 4.67.2.76. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.76. Seek procedure


4.67.2.76. 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: 4.67.2.75. RunError procedure To the Table of Contents Next: 4.67.2.77. SeekEof procedure
4.67.2.75. RunError procedure Table of Contents 4.67.2.77. SeekEof procedure

- 4.67.2.76. -