write script to read and write data from file ?

Answers were Sorted based on User's Feedback



write script to read and write data from file ?..

Answer / 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

write script to read and write data from file ?..

Answer / mahesh

any body help me with code pls..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How you automate test scripts

1 Answers   Novartis,


difference Between Call Run action and copy of action?

1 Answers  


how to write testcases for web based insurance,from the script by using qtp.

1 Answers  


In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)

1 Answers  


I open login gmail page after that QTP is not able to identify the object present in it then what u will do

3 Answers   Accenture,






Can we use same virtual objects in many number of tests?

1 Answers   TCS,


what is the difference between call to copy action and call to an existing action

5 Answers  


write the code to reverse a string without using Strrev built in function.

14 Answers   ADP,


There are some links on the page,count and click those links and check the text on the page displayed on clicking the link.write script for this scenario.

0 Answers  


Whats the realtime QTP testing process

0 Answers   IBM,


What is the Difference between copy to action and call to action?

0 Answers  


what are the mandatory properties for a tex boxc (scenario?)

0 Answers  


Categories