NetXP 3.0 Reference

FTP.GetFileSize Method 

Gets the size of a file.

[Visual Basic]
Public Function GetFileSize( _
   ByVal fileName As String _
) As Long
[C#]
public long GetFileSize(
   string fileName
);

Parameters

fileName
The file whose size to retrieve.

Return Value

The file's size.

Exceptions

Exception TypeCondition
IOExceptionIOException

See Also

FTP Class | NETXP.Library Namespace