Difference between revisions of "Fseek"

From Scriptwiki
Jump to: navigation, search
(little save due to many crashes of my pc)
(No difference)

Revision as of 01:01, 19 December 2005

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.