Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write code to read and write data from file?

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


Please Help Members By Posting Answers For Below Questions

Did the scripts need lot of maintenance? If yes, why?

3815


What are the advantages of Object Repository?

1099


What is expert view and keyword view?

1132


assume i have few url link how will i dynamically call then using descriptive programming?

2030


What are the various types of Actions in UFT?

1072


Is QTP supports Unix. If yes, then how the test automation is done?

2188


what is output value in QTP and how it can be used in automation testing

1994


Explain in brief about the quicktest professional automation object model?

955


How to delete an object from the object repository?

1112


Explain about the quicktest professional (qtp) automation object model?

983


Why qtp the best testing tool?

1017


What is the difference between analog and low level recording?

1092


What is a Patch in QTP?

1057


How to test background color and dynamic images during run time can you put the check point for moving objects?

1931


what frame work you are following?

1936