> For the complete documentation index, see [llms.txt](https://sharafat.gitbook.io/c/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharafat.gitbook.io/c/intermidiate/file-management/random-access.md).

# Random access

## rewind(FP)

sets the position back to 0

## ftell(FP)

gives the current position

## fseek(FP, offset, init\_position)

offset can be both positive and negative,

position,

| init\_position | value            |
| -------------- | ---------------- |
| 0              | Beginning        |
| 1              | Current position |
| 2              | End              |
