Re: [cc65] ftell and fseek unavailable on c64?

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-11-18 23:00:10


On Tue, Nov 18, 2003 at 10:17:16PM +0100, Game 64 - Benjamin Bahnsen wrote:
> Are these function unavailable on the c64? 

Yes. If implemented, they would be slow like hell, since the only way to seek
on a file opened on the floppy is to close it, reopen it, and then read all
data up to the given point. Using SEEK_END is even more difficult, since the
length of a file can only be determined by reading it completely.
   
As far as I know, the Atari machines are currently the only ones that have
ftell/fseek.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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 : 2003-11-18 23:00:25 CET