Core Function FileSeek
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> FileSeek( <file>, <offset>, <flag> ) </pre> === Description === Changes the current File Stream location on a previously opened text file. === Parameters === ==== file ...")
Newer edit →
(Created page with "<pre> FileSeek( <file>, <offset>, <flag> ) </pre> === Description === Changes the current File Stream location on a previously opened text file. === Parameters === ==== file ...")
Newer edit →
Revision as of 09:39, 9 November 2011
FileSeek( <file>, <offset>, <flag> )
Contents |
Description
Changes the current File Stream location on a previously opened text file.
Parameters
file
A variable containing the File handle.
offset
Any valid numeric expression above zero.
flag
The position to START from (Then you can add your offset) is set here with these flags:
- "b" = Base location is Beginning of the file
- "e" = Base location is End of the file
- "c" = Base location is the current location
Return Value
Success: Returns 1
Failure: Returns 0 if error occurs.
Remarks
N/A