I am using the following in C# to get the length of a file
long length = new System.IO.FileInfo(path).Length;
How can I nicely parse the file into same as Windows displays it:
2.92 MB (3,072,000 bytes)
I am using the following in C# to get the length of a file
long length = new System.IO.FileInfo(path).Length;
How can I nicely parse the file into same as Windows displays it:
2.92 MB (3,072,000 bytes)