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

write any ttest cases using check points and parameterization

2269


what is the differance between BYVAL,BYREF?

2258


Which in-built function related to an array joins substrings into one string in the vbscript language?

945


How to make sure that items in a wintree are sorted al?

2842


What is the main difference between function and sub-procedure?

1044


What is the event handling in vbscript?

978


How are values assigned to string type and numeric type variables?

994


Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)

1850


What is dictionary object in vbscript? Explain?

1171


how to automatically update the sql server2005 database records when insert in vb6?

1948


Mention how you can call vbscript functions?

1127


What is difference between vbscript and vba?

1207


What are the differences between sub procedures and function procedures?

977


What is the purpose of on error resume next statement?

988


Which loop is used in case of arrays in the vbscript language?

955