next up previous contents index
Next: fdTruncate Up: Functions and procedures Previous: fdRead

fdSeek

   

Declaration:

Function fdSeek (fd,Pos,SeekType:longint : longint;

Description:

fdSeek sets the current fileposition of file fd to Pos, starting from SeekType, which can be one of the following:

Seek_Set
Pos is the absolute position in the file.
Seek_Cur
Pos is relative to the current position.
Seek_end
Pos is relative to the end of the file.

The function returns the new fileposition, or -1 of an error occurred.

Errors:

Errors are returned in LinuxError.

See also:

fdOpen, fdWrite, fdClose, fdRead,fdTruncate, fdFlush

For an example, see fdOpen.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998