FileSeek

Shifts the file pointer to the given position. The file must be opened with seekable option

FileSeek( file, pos )

Returns: void

Argument Description
file
any, required

The file object.

Alias: source, filepath, fileObj

pos
number, required

The position in a file within a stream where the following read and write operation must occur.

Examples

fileseek("example.txt",1);

See also