[Coco] basic09 - append to file
Aaron Wolfe
aawolfe at gmail.com
Tue Jan 11 18:37:28 EST 2011
On Tue, Jan 11, 2011 at 6:32 PM, Bob Devries <devries.bob at gmail.com> wrote:
> Willard,
> I'm fairly sure that the value you use as a parameter for SEEK should be
> INTEGER, not REAL.
>
You'd think so, but basic09 manual says seek wants a real. maybe
because b09 ints aren't big enough?
> ----- 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
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
More information about the Coco
mailing list