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 retrive the property of an object?
Can we continue functionality testing without framework?
What is the meaning Work bench?
I have 3 browsers i want to give facebook url in 2 nd browser using qtp
I want some banking domain projects where can i get this projects ( anybody can help me plz)
HO DO U CALL A ACTION?
Hi Recently I Attend one interview .The intervier ask on Question in QC 9.2 . The Qus was while ruuning the Batch RUNS scripts in test lab if defect will comes .The defect automaticly wants to genate . How to Configure in QC . Thank You Balaji
1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?
How can you pass value one action to another action?
Can you list some technologies that support qtp?
How many add-ins comes by default with qtp?
Why you are Using Descriptive programming instead of Object Repository?