Project

General

Profile

Fseek » History » Revision 9

Revision 8 (Per Amundsen, 12/23/2019 01:10 AM) → Revision 9/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. 

 -l - Set position to line 'line number'. 
 -n - Set position to start of the next line. 
 -r - Set position to text matching '[[Scripting_Regex|regex]]'. 
 -w - Set position to text matching '[[Scripting_Wildcards|wildcard]]'. 
 -p - Set position to start of the previous line. 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | <handle> | - The file handle to seek. | 
 &lt;position | &lt;position <notextile>|</notextile> line number <notextile>|</notextile> [[Scripting_Wildcards<notextile>|</notextile>wildcard]] <notextile>|</notextile> [[Scripting_Regex<notextile>|</notextile>regex]]&gt; | [[Scripting_Wildcards|wildcard]] | [[Scripting_Regex|regex]]&gt; - The position/Line number with -l/[[Scripting_Wildcards<notextile>|</notextile>Wildcard]] -l/[[Scripting_Wildcards|Wildcard]] with -w/[[Scripting_Regex<notextile>|</notextile>regex]] -w/[[Scripting_Regex|regex]] with -w to set. |