IO::fseek(3) Seek to a position in a file

SYNOPSIS

Void fseek( File h, Int p )

ARGUMENTS

h A file handle

p The byte position to seek to (if the file contains multi-byte UTF-8 characters, and is being read as a string, be aware of the problems that positioning the pointer part way through a multi-byte character may cause)

DESCRIPTION

Seek to the specified byte of the file. Files opened with the Append file mode will always have writes occur at the end of the file, though this function will affect reading.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

RELATED

IO.fpos(3kaya)