Project

General

Profile

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*| 
 | &lt;handle&gt; | The file handle to seek. | 
 | &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. |