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 |
How to find array size in qtp?
want to learn real time automation project(QTP)?
How to use Regular Expressions in QTP
What is QTP?
why use Description programming? what is advantages and disadvantage of this methods?
how interviews will be on QTP?
what is the main process in QTP?
HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?
WHAT IS ENVIRONMENT VARIABLES?
7 Answers AZTEC, CTS, Ready Test Go,
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.
what will be there in keyword view and expert view?
What is Curd testing?