Fseek » History » Revision 10
Revision 9 (Per Amundsen, 02/16/2023 12:39 PM) → Revision 10/11 (Per Amundsen, 02/16/2023 12:39 PM)
_Added in 1.8.10_ */fseek [-lnrwp] <handle> <position | line number | wildcard | regex>* Sets the read/write pointer to the specified position in the file. *Switches* table(ktable). |*Switch*|*Description*| | -l | - Set position to line 'line number'. | | -n | - Set position to start of the next line. | | -r | - Set position to text matching '[[Scripting_Regex<notextile>|</notextile>regex]]'. | '[[Scripting_Regex|regex]]'. | -w | - Set position to text matching '[[Scripting_Wildcards<notextile>|</notextile>wildcard]]'. | '[[Scripting_Wildcards|wildcard]]'. | -p | - Set position to start of the previous line. | *Parameters* table(ktable). |*Parameter*|*Description*| | <handle> | The file handle to seek. | | <position <notextile>|</notextile> line number <notextile>|</notextile> [[Scripting_Wildcards<notextile>|</notextile>wildcard]] <notextile>|</notextile> [[Scripting_Regex<notextile>|</notextile>regex]]> | The position/Line number with -l/[[Scripting_Wildcards<notextile>|</notextile>Wildcard]] with -w/[[Scripting_Regex<notextile>|</notextile>regex]] with -w to set. |