P Peter Foot [MVP] Oct 7, 2005 #2 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
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