I am new to arrays and I want to display the size (in MB) of multiple files into a textBox. The paths to the files are in an array.
var Files = Directory.GetFiles(Path, "*" + filetype, SearchOption.AllDirectories);
I saw this code in another post to get the size of a file:
long length = new System.IO.FileInfo(file).Length;
How can I add all of the file sizes to an int/string and write them into the textBox?
FileInfoLength / (1024*1024)
– Eanes