write a vb script to open a text file and write into it
Answers were Sorted based on User's Feedback
Answer / mudaseer
dim vfso
set vfso=createobject("scripting.filesystemobject")
set vf=vfso.opentextfile("C:\hello.txt",2)
vf.write("howruthere")
'here 2 is for write and 8 is for append
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
What are subprocedures in vbscript?
Why is it recommended to close the database connection every time after the work is completed?
Hi, Anybody could tell me What is the 3rd Largest Number in the series..Thanks in Advance..
which one is more secure vb script or java script ??????? or both are same ??????
How to write functions and sub in vb script?
How to create a function in vbscript?
how to increasing the numbers in a given text box please write a vb script
What is dictionary object in vbscript? Explain?
plz give ans to this in vb script........ "krishna radha" i want to print this string "Radha Krishna" like this
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?