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

Date view Thread view Subject view

From: carlos (carlosofcascade_at_gmx.net)
Date: 2003-11-19 17:57:16


Hello,

i think that this is not right, because every sector has two bytes pointing
to the next sector of the file.
So one could seek 254 bytes at one time.

Greetings Carlos


>
> 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.
>
>


----------------------------------------------------------------------
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-19 18:00:32 CET