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 a vb script to open a text file and write into it

Answer Posted / sojan davis- infosys

Const ForWriting = 2,
Dim fso, fileObj
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileObj = fso.OpenTextFile(strConfigFile, ForWriting,
True)
fileObj.WriteLine("Hi")

fileObj.Close
Set fileObj=Nothing
Set fso=Nothing

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is diff between static and dynaic arrys?

2082


What is the use of option explicit statement?

943


What are the properties of regexp object?

1028


Explain the constants in vbscript?

932


When does ‘on click of button’ event gets triggered in the vbscript language?

941


what is the difference between modular and data and keyword driven framework

2193


What are the different types of loops available in the vbscript language?

932


What methods are used to create text files and open text files in the vbscript language?

923


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1835


What are the special sub-types in vbscript?

986


There are 5 web pages.write a script to click the button on 4th web page.

3356


How to replace junk code recorded by QTP with a mall function.

2012


Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

2086


How do you declare a variable in vbscript?

1021


What is event handling in vbscript?

1019