[Coco] How to use runb?

Wayne Campbell asa.rand at gmail.com
Sun Apr 5 01:40:44 EDT 2020


But just as a point, I think it may be in your use of eof that's the
problem. There will never be an end of file from standard in.

On Sat, Apr 4, 2020, 10:39 PM Wayne Campbell <asa.rand at gmail.com> wrote:

> Walter,
>
> I am not in front of my computer tonight. Tomorrow, probably in the
> afternoon, I will look at the code on my computer and see what it looks
> like when I try to run it.
>
> On Sat, Apr 4, 2020, 10:16 PM Walter Zambotti <zambotti at iinet.net.au>
> wrote:
>
>> Wayne
>>
>> The code looks like this:
>>
>> (I have retyped this by hand so there may be typos)
>>
>> DIM lcnt:INTEGER
>> DIM line:STRING
>> lcnt=0
>> WHILE NOT(EOF(#0)) DO
>>     READ #0,line
>>     lcnt=lcnt+1
>>     WRITE #1,STR$(lcnt)+": "+line
>>     ENDWHILE
>> END
>>
>> Walter
>>
>> -----Original Message-----
>> From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Wayne
>> Campbell
>> Sent: Sunday, 5 April 2020 12:51 PM
>> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
>> Subject: Re: [Coco] How to use runb?
>>
>> Without seeing your code, it's hard to say. that error just means that
>> there is something in your code that is not right. The only way to know is
>> to see the code and see where the error is occurring.
>>
>> Wayne
>>
>> On Sat, Apr 4, 2020, 9:37 PM Walter Zambotti <zambotti at iinet.net.au>
>> wrote:
>>
>> > I thought this should be simple enough.
>> >
>> >
>> >
>> > I have a very simple (9 line) basic09 program (called pipe.b09) that
>> > runs fine in basic09. It just reads and writes from stdio.
>> >
>> >
>> >
>> > I have packed it and rerun the packed code in basic09 and all is good.
>> >
>> >
>> >
>> > I can see the i-code module in the execution directory and confirmed
>> > it is an i-code module with ident.
>> >
>> >
>> >
>> > When I attempt to run the module with runb (runb pipe) I get error #51
>> > (line with compiler error).
>> >
>> >
>> >
>> > Am I missing something?
>> >
>> >
>> >
>> > Walter
>> >
>> >
>> > --
>> > Coco mailing list
>> > Coco at maltedmedia.com
>> > https://pairlist5.pair.net/mailman/listinfo/coco
>> >
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>


More information about the Coco mailing list