Answer Posted / 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 |
Post New Answer View All Answers
Did the scripts need lot of maintenance? If yes, why?
What are the advantages of Object Repository?
What is expert view and keyword view?
assume i have few url link how will i dynamically call then using descriptive programming?
What are the various types of Actions in UFT?
Is QTP supports Unix. If yes, then how the test automation is done?
what is output value in QTP and how it can be used in automation testing
Explain in brief about the quicktest professional automation object model?
How to delete an object from the object repository?
Explain about the quicktest professional (qtp) automation object model?
Why qtp the best testing tool?
What is the difference between analog and low level recording?
What is a Patch in QTP?
How to test background color and dynamic images during run time can you put the check point for moving objects?
what frame work you are following?