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

With out using the task manager,how to close the application using vbscript and what is the statement?

1 Answers  


Differences between text and test area checkpoints?

0 Answers  


How to attach a file to TD?

0 Answers  


what is difference betweem class annd object?

1 Answers  


what are SetToProperty, SetROProperty,GetToproperty scripting?

2 Answers  






how to find that tools work well with your existing system?

0 Answers  


How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open )

2 Answers   Infovision,


How you can decide which type of object repository you have to use?

0 Answers  


Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.

3 Answers  


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

0 Answers  


Is it possible to run qtp scripts in Test Director(Scripts are uploaded in Test director)???and also how to see the test results in test director???

1 Answers  


What are the advantages of Automation objects than Test Objects?

2 Answers   Adobe,


Categories