How to read a file from disc, just one byte at a time
Posted: Sat Nov 02, 2013 3:40 pm
Hello,
I am trying to read not text files from disk with the commands FLREAD and FREAD but these always truncate the reading when bytes like $0D or $00 ar reached, or commas found.
So, I was thinking that maybe I could read just one byte at a time, like we can do in PC languages (C, C++, Java ...), but haven't found a way to do it.
Has anybody had and solved this kind of problem?
I wouldn't mind to use assembler language, but hate to look for the entry in the directory track and then search for each used sector to load them in a user buffer, that hopefully could be read byte by byte.
Thanks in advance!
best regards
have a nice week-end
Pere
I am trying to read not text files from disk with the commands FLREAD and FREAD but these always truncate the reading when bytes like $0D or $00 ar reached, or commas found.
So, I was thinking that maybe I could read just one byte at a time, like we can do in PC languages (C, C++, Java ...), but haven't found a way to do it.
Has anybody had and solved this kind of problem?
I wouldn't mind to use assembler language, but hate to look for the entry in the directory track and then search for each used sector to load them in a user buffer, that hopefully could be read byte by byte.
Thanks in advance!
best regards
have a nice week-end
Pere