This content was proof-read by Grammarly. You can Try Grammary for FREE
If you need a way to get the size of a file in your C# program , you can use the Length property of the FileInfo class.
How to Get the File Size in C# ?
FileInfo.Length returns the length of the file in bytes.
Are you a .NET Developer planning to integrate GraphQL for .NET in your Application? Check out this book
var lengthOfFile = new System.IO.FileInfo(path).Length