if the file isn't too big, stat() will return its size, among other file info. you don't have to open the file to use it.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Offline 21,963 posts
since Aug 2005