Peter
Fri Oct 07 13:49:47 CDT 2005
Use the FileInfo class and it's length property e.g.
[C#]
FileInfo fi = new FileInfo("\\My Documents\\todo.txt");
long len = fi.Length;
[VB]
Dim fi As New FileInfo("\My Documents\todo.txt")
Dim len As Int64 = fi.Length
Peter
--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com |
http://www.peterfoot.net
"Dan" <Dan@discussions.microsoft.com> wrote in message
news:68BF9686-CB11-4F55-A23A-BA70241BDEBD@microsoft.com...
> What's the most efficient way to get the size of a file in dotnet CF?