write a vb script to open a text file and write into it
Answer Posted / 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 |
Post New Answer View All Answers
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
How to replace junk code recorded by QTP with a mall function.
What is the difference between a dictionary and an array?
Mention what is vbscript?
Explain about filter expression?
Which event is triggered when mouse focus comes out of an element in the vbscript language?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
What is the difference between do until loop and do while loop?
Can anyone send me a vb script function for verifying the functionality of active links on a web page
Explain what is loose binding? Why is it not a good practice to use it?
How will you get the largest subscript of an array in vbscript?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?
Explain the functionality of vbscript?
What is the use of option explicit in vbscript?