Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to create a cookie using vbscript?

1190


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

1001


What are the advantages of vbscript?

1080


How to open a file. What is the perpose of true and false mode there?

1107


What is vbscript procedures?

1136


Explain the operator precedence in vb script?

1060


How can you fetch the value of a cookie?

1007


How should i Create Email invite with server-side Coding?

2124


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

1080


How to write functions and sub in vb script?

1092


How to get the length of the string by making use of the string function?

1075


How are values assigned to string type and numeric type variables?

994


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

2204


what is the features of visual basic?

2138


did any one attended interview in applabs if you had gone through plz tell me the procedure

2267