Fseek

From Scriptwiki
Revision as of 00:01, 19 December 2005 by Doomie (talk | contribs) (little save due to many crashes of my pc)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sets the read/write pointer to the specified position in the file.

/fseek <name> <position>


The following switches can also be used to move the file pointer:

Switch Meaning
l /fseek -l <name> <linenumber>. Moves the pointer to the begin of the specified line.
n /fseek -n <name> <next line>. Moves the pointer to the begin of the next line.
w /fseek -w <name> <wildcard>. Moves the pointer to the next occurence of a string matching this wildcard from the current position of the pointer (see example below).
r /fseek -r <name> <regex>. Moves the pointer to the next occurence of a string matching the regex.