QTP Script to count number of lines in a text file.
Dim a,b
Const ForReading = 1
Set a=CreateObject( "Scripting.FileSystemObject" )
Set b=a.OpenTextFile( "C:\qtp.txt",1)
b.ReadAll
Msgbox "Number of lines= " & b.Line
Showing posts with label QTP Script to count number of lines in a text file. Show all posts
Showing posts with label QTP Script to count number of lines in a text file. Show all posts
QTP Script to count number of lines in a text file-VB Script to count number of lines in a text file
Subscribe to:
Posts (Atom)