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 can we do the frame work in qtp
What is smart identification?
Explain the keyword createobject with an example.
how to re-install QTP 9.0 trial version.
Is there a function to find the number of occurrences of sub strings within a string?
How many types of status are there?
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
w is output value
what is the use of automation objective model?where is used? plz tell me
in QTP we test web based application at that time what script is run? is support vb script? plz tell me
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
What is an Regular expression doing in VBScript?Tell the pattern for the email verification.