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


Please Help Members By Posting Answers For Below Questions

Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1948


What is qtp window?

568


What is reusable action?

606


what is the structure for the data driven framework

1485


What are the recording modes in wave event?

1538






Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

1426


How to find the name of the machine where you are running your automation scripts in qtp?

521


give me an example where u used good judgement and logic in solving a problem

3362


i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

1473


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1502


what is stepin & stepout?

1423


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1378


When do go for loop condition in test?

654


Can U Explain about QTP tool from older version to latest version also its differences?

1516


Explain the concept of object repository?

529