Fseek » History » Version 9
Per Amundsen, 02/16/2023 12:39 PM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | 8 | Per Amundsen | */fseek [-lnrwp] <handle> <position | line number | wildcard | regex>* |
4 | 1 | Per Amundsen | |
5 | Sets the read/write pointer to the specified position in the file. |
||
6 | |||
7 | -l - Set position to line 'line number'. |
||
8 | -n - Set position to start of the next line. |
||
9 | 5 | Per Amundsen | -r - Set position to text matching '[[Scripting_Regex|regex]]'. |
10 | 1 | Per Amundsen | -w - Set position to text matching '[[Scripting_Wildcards|wildcard]]'. |
11 | 8 | Per Amundsen | -p - Set position to start of the previous line. |
12 | 1 | Per Amundsen | |
13 | *Parameters* |
||
14 | |||
15 | 9 | Per Amundsen | table(ktable). |
16 | |*Parameter*|*Description*| |
||
17 | | <handle> | The file handle to seek. | |
||
18 | | <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. | |