[futurebasic] Problems reading a file [FB^3]

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1999 : Group Archive : Group : All Groups

From: Mark Goodes <mgoodes@...>
Date: Sun, 26 Dec 1999 12:43:42 -0500
I'm attempting to read a file using the code below.  Could someone
please tell me why the fileSize& keeps returning 0?  Thanks.

local
dim fileName$,refNum%,fileSize&
local fn GetFile
fileName$=files$(_fOpen,,,refNum%)
open "I",#1,fileName$
fileSize&=lof(1,1)
print fileSize&
End fn

fn GetFile