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 |
Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642
w r p syed then output was deys and click eysd and click ysde and click sdey and click deys and click eysd............
How to write functions and sub in vb script?
How do display output message without using msgbox function?
What are the environments supported by vbscript language?
Why is error handling required?
Explain the .wsf files?
What are the advantages of vbscript?
what do you mean .ota mobile format
What purpose does ‘on error resume next’ serves?
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
which is the bset training centre to learn automation tools?