---
name: "IO.fseek"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/IO.fseek"
---

# IO.fseek(3kaya)

Seek to a position in a file

## NAME

IO::fseek - 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 (kaya@kayalang.org). 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)**
