[Top]
Stdio
Stdio.File
|
Method Stdio.File()->seek()
- Method
seek
-
int seek(int pos)
int seek(int unit, int mult)
int seek(int unit, int mult, int add)
- Description
-
Seek to a specified offset in a file.
If mult or add are specified, pos will be calculated as
pos = unit *mult + add .
If pos is negative it will be relative to the start of the file,
otherwise it will be an absolute offset from the start of the file.
- Returns
-
Returns the new offset, or -1 on failure.
- Note
-
The arguments mult and add are considered obsolete, and
should not be used.
- See also
-
tell()
|