[Coco] File Size

Christopher R. Hawks chawks at dls.net
Tue Feb 14 11:15:59 EST 2023


On Tue, 14 Feb 2023 10:04:49 -0600
Allen Huffman via Coco <coco at maltedmedia.com> wrote:

> On Feb 14, 2023, at 9:59 AM, William Astle via Coco
> <coco at maltedmedia.com> wrote:
> > 
> > You can also "cheat" it by opening the file in "R" (or "D") mode
> > with a 1 byte record size, then use LOF() to get the number of
> > records, then close the file again.
> > 
> > OPEN "R",#1,"FILE.EXT",1
> > L=LOF(1)
> > CLOSE #1
> > 
> > Which basically makes the Disk Basic ROM do exactly what Allen
> > described.
> 
> I retract my answer!
> 
> As I look through my article draft, I see I discuss LOF! I just
> didn’t remember. D'oh!
> 

    That's why we write stuff down! (Or store it on our confusers.)


Christopher R. Hawks
HAWKSoft
-- 
Actually, Common Sense is so rare, it should be considered a Superpower.
----------------------------------------
       \   ^__^                         
        \  (oo)\_______                 
           (__)\       )\/\           
               ||----w |                
               ||     ||                


More information about the Coco mailing list