my program works with the text file (consisting of lines :)
program does selection of a line of this file on its offset, which is in advance known.
Offset is set in bytes from the file beginning...
On win32 script will work not as on Linux/UNIX...
Comment on Re^2: symbols are used for "a new line"
The windows version of you text file may have windows newlines (depending on how you transferred and/or edited it.) If it does, the offsets will be different than in *nix. If does not, you must open the file in binary mode. I cannot offer any more help without knowing your objective.