Skip to end of banner
Go to start of banner

fileSeek

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Description

Moves the file pointer to a specific spot in an already open file. If the position is negative, moves the file pointer at the end of the file. If the position is 0 (zero) it moves the pointer at the beginning of the file.

Parameters

Return Type

integer

Returns the current position of the file pointer.

Throws

string

  • "seek_error:" followed by the actual error

Example

Example 1

use "file";

int fid = open("C:\alphabet.txt");
seek(fid, 10);
runnerLog(fileReadLine(fid));
close(fid);

Returns: KLMNOPQRSTUVWXYZ

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels