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

Is it possible to change the values of analog recording?

832


what is error and fault in terms of software quality?

1753


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3464


What are the different recording modes?

761


Diff b/w test scenario's and test Procedures?

1865


images are dynamically changes how to compare two images with out using the bitmap

2206


please any one can explain the keyword driven framework. with gmail example.

1849


What is the use of text output value in quicktest professional (qtp)?

819


Get the count of files of similar types from a folder.

1232


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

2003


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1816


What is the default add-ins in qtp?

759


hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

2194


What does it mean when a check point is in red color? What do you do?

808


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1589