[Coco] basic09 - append to file

Wayne Campbell asa.rand at gmail.com
Wed Jan 12 15:54:15 EST 2011


After I went to bed last night I realized my error. Forgive me for 
misleading you. I seem to recall that the way I ended up doing it was a 
filesize syscall, followed by a seek to filesize-1.

Again, I am sory for misleading you.

Wayne

----- Original Message ----- 
From: "Aaron Wolfe" <aawolfe at gmail.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Wednesday, January 12, 2011 12:55 AM
Subject: Re: [Coco] basic09 - append to file


SEEK EOF(#fp)

returns a syntax error 28, missing path.

I've tried:

SEEK #fp,EOF(#fp)

but this causes a seek to 0, which is not entirely surprising since
eof(#fp) returns 0...  am I doing it wrong?



On Wed, Jan 12, 2011 at 12:59 AM, Wayne Campbell <asa.rand at gmail.com> wrote:
> The syntax is SEEK EOF(#path), where #path is your path variable for the
> file.
>
> Wayne
>
> ----- Original Message ----- From: "Aaron Wolfe" <aawolfe at gmail.com>
> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> Sent: Tuesday, January 11, 2011 1:13 PM
> Subject: [Coco] basic09 - append to file
>
>
>> Maybe I'm missing it.. is there an easy way to append to a file (like
>> a log file) in basic09? all the print,write,put statements seem to
>> write at the current file pointer which is 0 on open. any trick or
>> simple way to seek to the end?
>>
>> -Aaron
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>

--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco 




More information about the Coco mailing list