phat code "The trick is to forget about writing something good and pull cheese out of your butt." - Necros
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
Peter Swinkels Fri Oct 4 2024 at 1:00 pm
I did some more testing with some interesting results->
 
 
LOC and LOF always return zero. EOF is never set to true. Interestingly, if I use SEEK instead of LOC to retrieve my position inside the file it keeps increasing by the amount of bytes read.

Also I don't need to read exactly 6 bytes in one go, just 6 or more. I am guessing MS-DOS just tries to put at least 6 bytes into the string receiving the data which would of course corrupt memory when QBasic has allocated less than that.
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.