I am seeking to -500 as i know that the keyworn(<run>)wil be in last 500 characters
no you aren't, seek doesn't take negative offsets, like the error message I showed says
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] [d/l] |
seek (file, distance, from)
As you can see, seek requires three arguments:
file: which is the file variable representing the file in which to skip
distance: which is an integer representing the number of bytes (characters) to skip
from:which is either 0, 1, or 2
0 - The number of bytes to skip from beginning of the file.
1 - The number of bytes to skip from current location of the file.
2 - The number of bytes to skip from end of the file.
seek(CONFIRMEDOUTPUTFILE, -500, 2);
The above line skip backward 500 bytes from the end of the file.
| [reply] [Watch: Dir/Any] [d/l] [select] |