[Coco] results on INPUT vs. READ for disk files in BASIC09

James Jones jejones3141 at gmail.com
Tue Jun 5 04:21:21 EDT 2018


That seems inconsistent with the BASIC09 manual (I got the printed one out
this time), which says

   - [READ] reads either an ASCII record from a sequential file or device,
   or an item from a DATA statement
   - Each input record is terminated by a carriage return character.


On Mon, Jun 4, 2018 at 9:22 PM, Wayne Campbell <asa.rand at gmail.com> wrote:

> Don't forget that INPUT looks for a carraige return character to terminate
> input. READ does not do this and can read an entire file into a string,
> provided the file is shorter than the string variable.
>
>
> On Mon, Jun 4, 2018, 2:11 PM James Jones <jejones3141 at gmail.com> wrote:
>
> > INPUT ignores the prompt if it is given a path connected to a disk file
> not
> > opened for update.
> >
> > READ, if given a path, will do just as well without needing a prompt.
> >
> > --
> > 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