write script to read and write data from file ?
Answer Posted / lakshmi
First u create obj for file
set fso=createobject("scripting.filesystemobject")
set <var>=fso.opentextfile("FileName",[IOMode],[create])
IOModes 1-Readonly Create-True
2-Write False
8-append
Readline,writeline...use to access the data.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
What is the file extension of the code file in qtp?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
What are the Test design techniques you uses in ur project?
Approach for Installation,comaptibility,system testing
Hi Samrat, Thank u very much, what u said it is right.
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
How to handle dynamic objects in quicktest professional?
What is a programmatic description?
Hi, Can we open a test in qtp10 which is saved in qtp 9.2?
Explain different checkpoints in qtp.
Is it possible to merge two object repository files in qtp?
how to find that tools work well with your existing system?