NAnt SDK Documentation - v0.92

FileFunctions.GetLength Method 

Gets the length of the file.

[Visual Basic]
<Function(Name:="get-length")>
Public Function GetLength( _
   ByVal file As String _
) As Long
[C#]
[Function(Name="get-length")]
public long GetLength(
   string file
);

Parameters

file
filename

Return Value

Length in bytes, of the file named file.

Exceptions

Exception Type Condition
FileNotFoundException The file specified cannot be found.

See Also

FileFunctions Class | NAnt.Core.Functions Namespace