How to Determine size of file on HD from Script

I’m trying to determine the size of a file on the hard drive. I’m using lotusscript to access a file in a directory using the open statement, and now that I have a handle on the file, how do I determine it’s size? I’m thinking I could read in the contents and then do my own determination as to it’s size, but is there an easier way? Is there something else beside the “Open” statement to find out the size of a file on the hard drive?

Thank you for your help.

Subject: You using Windows, so try this…

Dim fso As VariantDim f As Variant

Set fso = CreateObject (“Scripting.FileSystemObject”)

Set f = fso.GetFile(“C:\pagefile.sys”)

Msgbox "File size in bytes is " & f.Size

Subject: Oops. So easy

Thanks for your reply. I sure missed this one. The function is “FileLen” that give the file’s size in bytes. Duh! I just didn’t see it. Thanks again.