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
How to Convert Hex color code to color name in VB Script?
Which in-built function related to an array joins substrings into one string in the vbscript language?
Which date function is used in the vbscript language to find the difference between the 2 dates?
How will you get the exponent of the given number in vbscript?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
How to open a file. What is the perpose of true and false mode there?
Mention what is select case statement?
How regexp.execute method works?
How can constants be declared in the vbscript language?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
How will you get the natural logarithm of the given number in vbscript?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
What is the main difference between function and sub-procedure?
When are redim statement and preserve keyword used in the vbscript language?