...
integer
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
int $fileID; |
...
int $filePos; |
...
string $str = "}"; |
...
$fileID = `fileOpen "C:/testfile.log" "w"`; |
...
...
//set the file position to the 27th position... |
...
setFilePos $fileID 27; |
...
...
// get the file position and print it out to the command log and |
...
// the 27th space in the text file. |
...
$filePos = `getFilePos $fileID`; |
...
writeInt $fileID $filePos; |
...
...
//close the file. |
...
fileClose $fileID; |
...
...
// now if you open "C:/testfile.log" you should see "27" in the |
...
// 27th space counting from 0. |
Additional information
Related commands
...