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
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.
How to assign a date value to a variable?
How strcomp function works?
How will you get a subset of a array in vbscript?
write any ttest cases using check points and parameterization
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
Can automation testing find ssame no. of bugs what we can find by manual testing?
what types of bugs will we find out in banking projects for automation testing?
How to Enter Values on the Command promt using VB script
What is the difference between vbscript and vba?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
what is the standards used for writing the script in QTP
How to capture a runtime error in vbscript?
please can you help me to get a code of flames using a visual basic 6
where can i learn VB scripint ?