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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you check that a variable is an array in vbscript?

1053


Mention what is variant in vbscript?

990


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1770


What is the difference between vbscript and vba?

1187


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

1053


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

2351


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1431


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

2187


How you can call vbscript functions?

1155


What are the data types supported by vbscript?

1174


How to throw an error in vbscript?

1200


What are the advantages of vbscript?

1142


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

1014


about vb scripting programs this type of all question& answers

2182


What is vbscript procedures?

1195