Answers for "c# get file size before download"

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

C# Answers by Framework

Browse Popular Code Answers by Language