Checking the size of a file

  • Thread starter Thread starter Dakkar
  • Start date Start date
Hi,

Use the FileInfo.Length property.

Eg:
FileInfo info = new FileInfo("C:\\asd.txt");
Console.WriteLine(info.Length);

HTH,
Rakesh Rajan
 
Back
Top