Page 1 of 1

Sequential File Position Reset

Posted: Sun Nov 27, 2005 2:50 pm
by Pharoah
Is there any way to go back to the beginning of a sequential file without closing it and then re-opening it? I know this is probably a stupid question, but I did not find anything about it

Posted: Sun Nov 27, 2005 2:52 pm
by Z!re
Try SEEK, might work..

Posted: Sun Nov 27, 2005 4:10 pm
by {Nathan}
I am pretty sure that you need to close and open is again... or just use random access files.

Posted: Sun Nov 27, 2005 5:20 pm
by Pharoah
Yep, SEEK'll work. It sets it to the byte position in the file.
For most things I do just use random-access files. But this is a readme file and so I wanted to make it readable by any text-editor in case the person didn't want to find out if the program had a built-in readme viewer/help system