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...


Hi

I am having one folder with set of text files now i want to
read and write that text files data into QTP. Any help
plsss.



Hi I am having one folder with set of text files now i want to read and write that text files d..

Answer / gyanesh ranjan rout

Dim fso,f
Set fso=createobject("scripting.filesystemobject")

Set f=fso.OpenTextFile("c:\text.txt", 2, True)
f.Write("how r u")

Set f=fso.OpenTextFile("c:\text.txt", 1)
readalltextfile= f.ReadAll

msgbox readalltextfile

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB Script Interview Questions

write a vb script to rename a folder from tree4 to tree7

3 Answers  


Which function is used in the vbscript language to convert the specified expression into a date type value?

0 Answers  


Mention how to access array data?

0 Answers  


what is the object hyrarchy in QTP for a web based application

0 Answers  


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

0 Answers  


how to check whether link is disabled in QTP??

0 Answers  


Which date function is used in the vbscript language to find the difference between the 2 dates?

0 Answers  


what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next

5 Answers   Hexaware,


What are the environments supported by vbscript language?

0 Answers  


Mention what is the difference between vbscript and vba?

0 Answers  


Mention what is vbscript?

0 Answers  


compare the string without using stringcomp function?

1 Answers   CSS Corp,


Categories