Prototype
FileSeek(intFileHandle, intPosition)
Description
It place inside a file in the position passed as parameter.
Parameters
IntFileHandle: integer numerical value that corresponds at the handle of the file.
IntPosition: integer numerical value that corresponds at the position.
Returned value
None.
Notes
This command cannot be used with text files.
Example
// Check if a file exists
Esistente:=FileExists ('c:\files\unfile');
// If it doesn't exist it creates it
If Esistente=False Then CreateFile('c:\files\unfile');
// Open the file
UnFile:=FileOpen('c:\files\unfile');
// It places itself in the file
FileSeek(UnFile, 1);
// Writes one byte in the file
FileWrite(UnFile,1);
// Closes the file
FileClose(UnFile);