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
write any ttest cases using check points and parameterization
what is the differance between BYVAL,BYREF?
Which in-built function related to an array joins substrings into one string in the vbscript language?
How to make sure that items in a wintree are sorted al?
What is the main difference between function and sub-procedure?
What is the event handling in vbscript?
How are values assigned to string type and numeric type variables?
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)
What is dictionary object in vbscript? Explain?
how to automatically update the sql server2005 database records when insert in vb6?
Mention how you can call vbscript functions?
What is difference between vbscript and vba?
What are the differences between sub procedures and function procedures?
What is the purpose of on error resume next statement?
Which loop is used in case of arrays in the vbscript language?