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

Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1917


How to assign a date value to a variable?

1154


How strcomp function works?

1144


How will you get a subset of a array in vbscript?

1057


write any ttest cases using check points and parameterization

2337


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

2175


Can automation testing find ssame no. of bugs what we can find by manual testing?

2025


what types of bugs will we find out in banking projects for automation testing?

2282


How to Enter Values on the Command promt using VB script

2101


What is the difference between vbscript and vba?

1185


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

1096


what is the standards used for writing the script in QTP

2383


How to capture a runtime error in vbscript?

1212


please can you help me to get a code of flames using a visual basic 6

1856


where can i learn VB scripint ?

2162