How to use Text file (Notepad) as ur data source in QTP?
Can u please provide some function code for it?
For this you need create File system object.
Below code is for reading from text file
Const ForRead=1
Dim objFSO, objFile, strText
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Reading code
Set objFile=objFSO.OpenTextFile("z:\filetext.txt", ForRead)
Do until objFile.AtEndOfStream
strText=objFile.ReadLine
msgbox strText
Loop
objFile.close
Set objFile = nothing
Set objFile1 = nothing
Set objFSO =nothing
"strText" variable will now contain data from text file.
| Is This Answer Correct ? | 9 Yes | 1 No |
write a vb script to find simple interest using functions
write a program to display configuration of a local system with the help of vb script.
How to replace junk code recorded by QTP with a mall function.
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
Can anyone help me in write coding to get this pattern * ** *** ****
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
Mention how to assign a date value to a variable?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Input = 124 output should be 124421 Please do not use any string functions/variables
Join the multiple array with out using JOIN function
i need to sort the data using qtp script for this how i need to write a qtp script
How to create a function in vbscript?