[Coco] Does the DIR option of OPEN work in Basic09 ?

Gene Heskett gheskett at shentel.net
Sun May 23 00:06:32 EDT 2021


On Saturday 22 May 2021 19:54:27 James Jones wrote:

> Oops.. not *quite* text. There's the file's LSN and I don't recall
> offhand how the name is terminated.

MSBit set in last character, max of 29 chars. LSN of file descriptor 
sector is laat 3 bytes of a $20 byte directory slot. 32 bytes in 
decimal.

> On Sat, May 22, 2021 at 6:34 PM James Jones <jejones3141 at gmail.com> 
wrote:
> > Directory entries need some massaging to turn into printable form;
> > they are not text. Even with that, unless you have /dd/SYS/SYS, you
> > won't see an entry for "SYS" in /dd/SYS. You will see one for ".",
> > which corresponds to /dd/SYS.
> >
> > On Sat, May 22, 2021 at 2:33 PM <coco at jechar.ca> wrote:
> >> I tried this OPEN #dp,dline$:READ+DIR
> >>
> >> But
> >>     dline$="/dd/SYS"
> >>     OPEN #dp,dline$:READ+DIR
> >>     REPEAT
> >>        READ #dp,line$
> >>        PRINT line$
> >>     UNTIL EOF(#dp)
> >>
> >> Did not print the SYS directory, Why ?
> >>
> >> Charlie
> >>
> >> --
> >> Coco mailing list
> >> Coco at maltedmedia.com
> >> https://pairlist5.pair.net/mailman/listinfo/coco


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


More information about the Coco mailing list