06-19-2013, 12:28 AM
Hi Guys,
I've a text file(data) which has 3 lines as following:
ABC
DEF
XYZ
I'm reading the text file using the following command:
Now, i want to store the 3 values from text file into 3 variables in qtp.
For example,
V1=ABC
V2=DEF
V3=XYZ
Can somebody please help me out??
I've a text file(data) which has 3 lines as following:
ABC
DEF
XYZ
I'm reading the text file using the following command:
Code:
Const ForReading = 1
Set fso = CreateObject("Scripting.FileSystemObject")
s1="C:\temp\data.txt"
Set theFile = fso.OpenTextFile(s1, ForReading, False)
Do While theFile.AtEndOfLine <> True
retstring = theFile.ReadLine
msgbox retstring
Loop
theFile.Close
Now, i want to store the 3 values from text file into 3 variables in qtp.
For example,
V1=ABC
V2=DEF
V3=XYZ
Can somebody please help me out??