Return to Snippet

Revision: 31167
at August 31, 2010 10:37 by jx_boi


Initial Code
public int CalculateTotalFileSize(string[] path)
{
    int sumFileSize = 0;
    foreach(string onePath in path)
    {
        FileInfo info = new FileInfo(onePath);
        sumFileSize += Convert.ToInt32(info.Length);
    }
    return sumFileSize;
}

Initial URL

                                

Initial Description

                                

Initial Title
Calculate Total File Size

Initial Tags
file

Initial Language
C#