Moves the current position of a file to a specified component.
procedure Seek(var F; N: Longint);
Seek( F, Longint N);
System
Use Seek in Delphi code to move to a specified position in open typed or untyped files. The current file position of F moves to component number N, where the number of the first component of a file is 0.
In the above syntax, F is a typed or untyped file variable. The file specified by F must be open. N is an expression of type Longint
To expand a file, seek one component beyond the last component; that is, the statement Seek(F, FileSize(F)) moves the current file position to the end of the file.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|