[Coco] basic09 - append to file
Bob Devries
devries.bob at gmail.com
Tue Jan 11 18:32:16 EST 2011
Willard,
I'm fairly sure that the value you use as a parameter for SEEK should be
INTEGER, not REAL.
----- Original Message -----
From: "Willard Goosey" <goosey at virgo.sdc.org>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Wednesday, January 12, 2011 9:21 AM
Subject: Re: [Coco] basic09 - append to file
> On Tue, Jan 11, 2011 at 04:13:08PM -0500, Aaron Wolfe wrote:
>> 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?
>
> It looks like the easiest way is to do a SYSCALL with GETSTA SS.SIZ,
> convert the result to a real, and SEEK to that.
>
> Willard
> --
> Willard Goosey goosey at sdc.org
> Socorro, New Mexico, USA
> I search my heart and find Cimmeria, land of Darkness and the Night.
> -- R.E. Howard
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list