[Coco] File Size

Allen Huffman alsplace at pobox.com
Tue Feb 14 11:04:49 EST 2023


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!


More information about the Coco mailing list