Re: [cc65] Atari file i/o more info

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2002-05-15 00:32:26


I did a lot more testing under AtariDOS 2.5 and SpartaDOS 3.3.  Here is what I found:

fopen(filename, "rb") + feof:
SpartaDOS: OK
AtariDOS: OK

fopen(filename, "r+b") + feof:
SpartaDOS: never gets EOF in feof
AtariDOS: OK

fwrite:
SpartaDOS: you can write past the end of the file if you open in "r+b" mode.
AtariDOS: you cannot write past the end of the file even in r+b mode.

So, if you want to add to a file in AtariDOS you need append mode, and if you want to add to a file in SpartaDOS you need either append mode, or some way to get to the end of the file and write your data there.  The file i/o functions are so close to being complete, but a few vital functions are still missing.  How're you doing on the note and point (aka lseek) functions, Christian?



----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-05-15 00:32:41 CEST