How can I read files non-sequentially?
Posted: Tue May 27, 2008 3:49 am
Hi all,
as part of a related project, I'm trying to read files from a disk byte-by-byte and display the results on the screen.
All well and good if reading sequentially, but I'd like to be able to enable a user to go back a page as well.. thus (I guess) I need to use a file that allows random access - I believe this is typically what you'd use a USR file for.
My first question - is a USR file the same as a PRG or SEQ file in the way the data is stored on the disk? ie does the extension indicate a fundamental difference in the file, or is it merely nominal? Can you treat a PRG file as a USR file and vice versa?
Cheers
-G
as part of a related project, I'm trying to read files from a disk byte-by-byte and display the results on the screen.
All well and good if reading sequentially, but I'd like to be able to enable a user to go back a page as well.. thus (I guess) I need to use a file that allows random access - I believe this is typically what you'd use a USR file for.
My first question - is a USR file the same as a PRG or SEQ file in the way the data is stored on the disk? ie does the extension indicate a fundamental difference in the file, or is it merely nominal? Can you treat a PRG file as a USR file and vice versa?
Cheers
-G