From WikiChip
Difference between revisions of "mirc/commands/fseek"
m (Bot: Fixing links) |
m (Bot: Fixing links) |
||
Line 31: | Line 31: | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | * | + | * {{mIRC|$fread}} |
− | * | + | * {{mIRC|$fopen}} |
− | * | + | * {{mIRC|$ferr}} |
− | * | + | * {{mIRC|$feof}} |
− | * | + | * {{mIRC|$fgetc}} |
* {{mIRC|/fclose}} | * {{mIRC|/fclose}} | ||
* {{mIRC|/flist}} | * {{mIRC|/flist}} |
Revision as of 19:30, 5 July 2014
The /fseek command sets the read/write pointer to the specified position in the file, position starts at 0.
Synopsis
/fseek <name> <position>
Switches
- -l - sets the pointer to the beginning of the line
- -n - sets the pointer to the beginning of the next line
- -w - sets the pointer to the beginning of the line matching the wildcard expression
- -r - sets the pointer to the beginning of the line matching the regular expression
Parameters
- <name> - the name of the file handle
- <position> - not required with -n, if -l is used: a line number, if -w is used: a wildcard expression, if -r is used: a regular expression, if no switch is used, it's the position in the file (Nth bytes)
Example
/fseek myfile 42 /fseek -l myfile 12 /fseek -n /fseek -w *findthis* /fseek -r /findthat/
Compatibility
Added: 6.1
Added On: 29/08/2003
Note: Individual switches were not taken into consideration.
See also
mIRC commands list