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
what is diff between static and dynaic arrys?
What is the use of option explicit statement?
What are the properties of regexp object?
Explain the constants in vbscript?
When does ‘on click of button’ event gets triggered in the vbscript language?
what is the difference between modular and data and keyword driven framework
What are the different types of loops available in the vbscript language?
What methods are used to create text files and open text files in the vbscript language?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
What are the special sub-types in vbscript?
There are 5 web pages.write a script to click the button on 4th web page.
How to replace junk code recorded by QTP with a mall function.
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
How do you declare a variable in vbscript?
What is event handling in vbscript?