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
There is an excel file of 1 to 100 sheets how you will iterate through it?
What are the disadvantages of recording test cases in qtp?
Is it possible to call win runner script in qtp?
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
When do go for loop condition in test?
How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?
What are the Disadvantages of shared object repository?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
How you can write contexts to text file in qtp?
How may types of defects identify application or your currently working application?pls give me answer..
explain abt dyanamic changing object with example?
is there any addin for remedy user application
When and why to use descriptive programming?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
What is checkpoints for quicktest professional?