[Newbies] determining file size?
K. K. Subramaniam
subbukk at gmail.com
Sat Mar 20 15:41:59 UTC 2010
On Saturday 20 March 2010 09:02:32 pm Van Upboy wrote:
> I'm listing files in a directory, but I want to show more than just the
> filename (like file size and may be creation date). I've searched for some
> time on the Internet, but I can't find the answer. How to do this?
File size is an attribute of the file's entry in its directory.
See fileSize method in DirectoryEntry class. If you already have a file handle
or a stream opened on it, use directoryEntry method. E.g.
stream directoryEntry fileSize
HTH .. Subbu
More information about the Beginners