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
Is VB Script Case sensitive or Case insensitive?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
when we use filter funtiom invb script(QTP)
filter the array values without using filter function?
Mention how to assign a date value to a variable?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
How to throw an error in vbscript?
Mention what is the main difference between function and sub-procedure?
please can you help me to get a code of flames using a visual basic 6
How to create a cookie using vbscript?
Which keyword is used to declare a variable in the vbscript language?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
How to replace junk code recorded by QTP with a mall function.
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
Compare java script and vb script?