[Coco] File size from Disk Basic
William Astle
lost at l-w.ca
Thu Jun 28 11:17:33 EDT 2007
theother_bob wrote:
> That's cool, but if used as part of a large basic program, would it cause an OM error?
> I'll have to play with it later, thanks Bob
Closing a file deallocates the buffer space associated with it.
Additionally, the FIELD statement is not required (as far as I can tell
from looking at the unravelled book).
>
> Bob
>
> ----- Original Message ----
> From: Bob Devries <devries.bob at gmail.com>
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Sent: Wednesday, June 27, 2007 5:55:20 PM
> Subject: Re: [Coco] File size from Disk Basic
>
>
> There is a much easier way to find file size.
>
> Use the LOF function!
>
> Opne the file like this:
>
> OPEN"D",#1,"FILENAME.BIN",1
> FIELD #1, 1 AS A$
> SIZE=LOF(1)
> PRINT"FILE SIZE=";SIZE
> CLOSE #1
>
>
>
> ____________________________________________________________________________________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
--
William Astle
finger lost at l-w.net for further information
Geek Code V3.12: GCS/M/S d- s+:+ !a C++ UL++++$ P++ L+++ !E W++ !N w---
!D !M PS PE V-- Y+ PGP t+@ 5++ X !R tv+@ b+++@ !DI D? G e++ h+ y?
More information about the Coco
mailing list