Getting File Size

Kris Jacyna

Member
Joined
Feb 12, 2007
Messages
20
Programming Experience
Beginner
What is the code to get the size of a file?
e.g how to find the size of the file: "C:\sample.txt"

Thanks
 
System.IO namespace has got most of what you need for file IO operations. Use the FileInfo class to get file size info.
 
Back
Top