Project

General

Profile

Fseek » History » Version 11

Per Amundsen, 02/22/2023 04:53 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 11 Per Amundsen
_See also [[/fopen]], [[/fclose]], [[/fwrite]], [[/flist]], [[$fread]], [[$fgetc]], [[$feof]], [[$ferr]], [[$fopen]]._
8
9 10 Per Amundsen
*Switches*
10
11
table(ktable).
12
|*Switch*|*Description*|
13
| -l | Set position to line 'line number'. |
14
| -n | Set position to start of the next line. |
15
| -r | Set position to text matching '[[Scripting_Regex<notextile>|</notextile>regex]]'. |
16
| -w | Set position to text matching '[[Scripting_Wildcards<notextile>|</notextile>wildcard]]'. |
17
| -p | Set position to start of the previous line. |
18 1 Per Amundsen
19
*Parameters*
20
21 9 Per Amundsen
table(ktable).
22
|*Parameter*|*Description*|
23
| &lt;handle&gt; | The file handle to seek. |
24
| &lt;position <notextile>|</notextile> line number <notextile>|</notextile> [[Scripting_Wildcards<notextile>|</notextile>wildcard]] <notextile>|</notextile> [[Scripting_Regex<notextile>|</notextile>regex]]&gt; | The position/Line number with -l/[[Scripting_Wildcards<notextile>|</notextile>Wildcard]] with -w/[[Scripting_Regex<notextile>|</notextile>regex]] with -w to set. |