Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #size #file
ADD COMMENT
Topic
Name
7+5 =