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


Please Help Members By Posting Answers For Below Questions

What are the uses of vb script?

794


What is the use of the formatdatetime function in the vbscript language?

757


why variable name should not exceed 255 characters?

1985


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1993


Explain about the support of asp for vb script functionality?

718


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.

4964


How to capture a runtime error in vbscript?

837


What's the difference between vbscript and vb.net?

773


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?

1761


how to automatically update the sql server2005 database records when insert in vb6?

1687


can anyone tell me the procedure of interview held in applabs

1954


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

747


What are the environments supported by vbscript language?

690


Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1630


Which event is triggered when mouse focus comes out of an element in the vbscript language?

696