OPening of notedpad in QTP to write and execute the coding?

Answer Posted / nanda

set fso = createobject("scripting.filesytemobject")

file_path = "c:\nanda.txt"
forwriting =2
forreading = 1
set notepad = fso.createtextfile(file_path,forwriting)
notepad.writeline "this is created by Nanda"
notepad.writeline "this is created on "& now
notepad.close

set notepad = fso.opentextfile(file_path,forreading)
for notepad.atendofstream
n = notepad.readline
msgbox n
Next

this script will create a notepad and write data and read
data in that file.

If any queries...
nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the parameterization? Give one example?

587


how to download mercury qtp9.2 ny internet ?

2952


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

561


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

863


Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

1730






In qtp, how you can remove the spaces from string?

541


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

600


Explain in brief about the quicktest professional automation object model?

510


How to run a test using quicktest professional?

525


How many types of recording facility are available in quicktest professional (qtp)?

599


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

1726


Explain the Different types of QTP test assets and their extensions?

601


What is active screen?

560


What is synchronization point in QTP?

670


How to use output values in qtp ?

550