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

Plz explain about Virtual object? What is the situation u r using , explain with example?

1 Answers  


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


How do you open adobe acrobat file in QTP and do some testing on that file ?

1 Answers  


What is quicktest professional (qtp)?

1 Answers  


Hi guys, can anyone explain me whats the method for reporting the QTP test results to teamlead or non-QA member (developer/PM)? Thanks in Advance!!!!!

2 Answers  


How can we translate the steps between the Keyword and Expert Views?

1 Answers  


Explain the features and benefits of quick test pro(qtp)?

1 Answers  


How to use Environment parameterization? Explain with an example.

1 Answers  


How to get line numbers in your editor in expert view?

2 Answers  


There are some links on the web page,write a script to count and click those links and check the text on the page displayed on clicking the links.

3 Answers   Tech Mahindra,


what is difference between wait and synchronization point.

3 Answers   IBM, Intel,


Check point what is how many types of checkpoint and explain

3 Answers   Accenture,


Categories