write code to read and write data from file?
Answer / rdshet
Hi,
Set fso = CreateObject("Scripting.FilesyStemObject")
Set fil = fso.CreateTextFile("D:\test.txt", TRUE)
fil.writeline "this is text 1 " ' Writing
fil.writeline "this is text 2 "
fil.writeline "this is text 3 "
fil.close
IF fso.FileExists("D:\test.txt") =TRUE Then
Set fil1 =fso.OpenTextFile ("D:\test.txt",1)
DO WHILE NOT fil1.atendofstream
flread = fil1.ReadLine 'Reading
msgbox flread
LOOP
flread.close
Set flread = NOTHING
END IF
Set fil = NOTHING
Set fso = NOTHING
Regds
Raghavendra
Please correct me if am wrong.
| Is This Answer Correct ? | 2 Yes | 1 No |
What is the Command used to start the QTP
How software automation specialist enter steps in the Expert View?
What is iteration? How it is related to Test Results in QTP
3 Answers Virinchi Technologies,
Give one example of Standard checkpoint in qtp 10?
How to covert a String to an integer?
I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.
After the execution of a script how do u upload the results to Quality Center. Pls anyone explain in detail. It is very urgent._______Thanks a lot!!
give me descriptive programing code sample flight application in qtp?
when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?
How to create configuration scripts
how do u handle an object without name using QTP 9.2?
How would you export a script from one pc to another in qtp?