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

What is quicktest professional?

756


what frame work you are following?

1708


How to release all resources file from the QTP?

1261


How to export quicktest professional results to an .xls file?

817


What are the automation metrice in your project?

1941


How the exception handling can be done using quicktest professional?

758


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1616


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3898


What is quicktest professional window?

758


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

800


What are the steps involved in recovery scenario wizard?

736


How to analyzing test results using quicktest professional?

884


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

1714


What is qtpro? What is quick test pro?

811


What are benefits of qtp?

789