NumberOfLinesInFile
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:41 PM

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


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions