[Coco] File size from Disk Basic

theother_bob theother_bob at yahoo.com
Thu Jun 28 09:06:38 EDT 2007


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

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  



More information about the Coco mailing list