Answers for "how to check the file size inside my c# program?"

C#
3

C# get size of file

// Get the information about a file
FileInfo fi = new FileInfo(file);
// Print the file size to console
Console.WriteLine($"File size: {fi.Length} bytes");
Posted by: Guest on July-30-2020

Code answers related to "how to check the file size inside my c# program?"

C# Answers by Framework

Browse Popular Code Answers by Language