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 |
What methods are used to create text files and open text files in the vbscript language?
If anyone knows abt Test Complete material, Pls let me Know. if u have any material or any documents..... Pls mail me on this mail Id...... This is very Urgent Requirment..... for my Project.....
a function that takes an integer array as an argument and returns the largest value in the array. Use the function in a program
write a vb script to display the number is odd or even and whether it is divisible by 9 or not
Mention what is the use of option explicit in vbscript?
How can I get the value of an object property or variable in another frame?
did any one attended interview in applabs if you had gone through plz tell me the procedure
How to remove the spaces in a string Ex: "this is apple"
Mention what is vbscript?
Mention what is byref and byval parameters in vbscript?
write a vb script to open a text file and write into it
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)