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

What is the scope of a constant declared using public?

915


who will create the object?

1915


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

2189


How to delete a cookie using vbscript?

1083


why do u choose to go for testing why cant for devoloping

2014


Description.Create

2592


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

2000


How will you compare two strings in vbscript?

998


How will you get the octal value of the given number in vbscript?

911


When are redim statement and preserve keyword used in the vbscript language?

985


When to use function procedures and what are its characteristics?

1028


What is the use of the instr function?

994


What is the output of a + b in vbscript if a = 5 and b = 10?

3039


regular expression that will recognize a browser as long as its name property starts with mybrowser

2179


What is loose binding? Why is it not a good practice to use it?

1049