Syntax
Public Function NumberOfLinesInFile(FileName As String) As Integer
Description
This function is used to get the number of lines in a specific given file.
Parameters
Key | Description |
FileName | Path and name of file to get the number of lines on it, value of type String |
Return value
Returns the number of lines in a file as an integer value.
Sample
Public Sub main() Dim fileName Dim NumberOfLine fileName = "C:VertexWorld.txt" NumberOfLine = NumberOfLineInFile(Cstr(fileName)) AlertMessage(NumberOfLine) End Sub
See Also