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 |
Which loop is used in case of arrays in the vbscript language?
what is diff between static and dynaic arrys?
Explain about adodb.stream class?
am giving to one number u can set into that in date format.u can use any methods
How to generate 3 digit random number?
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.
what is the standards used for writing the script in QTP
Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?
write a vb script to rename a folder from tree4 to tree7
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
What is the use of the recordset object and which statement is used to create such an object?
wht must be the interview question on corinthian information technology solutions incorporated.