views:

99

answers:

1

Hi,

How i can find file size in windows mobile ? (using c#)

Thanks in advance.

+3  A: 

Use the Length property of a FileInfo class:

FileInfo fi = new FileInfo(pathToMyFile);
if(fi.Exists)
    long sizeOfMyFile = fi.Length;
ctacke