i want to do a program download.
but i don't know a manner file size.
may you help me?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Jan 31, 2009, 12:43 PM
First of all, you need to have the title of your post that makes some sense. Just "help me" is not good enough. It should be something like - "How to get a file size". Read forum posting guidelines here before post your questions:
http://www.c-sharpcorner.com/Forums/MustRead.aspx
================
You can use the Length property of the FileInfo object something like this.
System.IO.FileInfo fi = new System.IO.FileInfo(filepath);
fi.Length();