seek | ||||||||||
Type | command | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Summary | Locates a position in a file, to be used by the read from file and write to file commands. | |||||||||
Introduced | 1.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Related | Command: close file, read from file, write to file Glossary: command, byte Keyword: file, relative | |||||||||
Description | Use the seek command to prepare to read from or write to an open file at a specific position in the file. The next read from file or write to file command will start reading or writing at the position specified by the seek command. Theform sets the file position to byteNumber bytes from the start of the file. Theform sets the file position to byteNumber bytes from the current position. The position is set by either a previous seek command, or a read from file or write to file command. | |||||||||
Tags | file system |