csharp get size of file
Code Example - csharp get size of file
// Get the information about a file
FileInfo fi = new FileInfo(file);
// Print the file size to console
Console.WriteLine(%%%~COMPRESS~PRE~0~%%%quot;File size: {fi.Length} bytes");
csharp get file size in bytes
long _fileSize = new System.IO.FileInfo(filePath).Length;