Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A way to overwrite the content of a file!

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
I have a txt file, and i want that every time i write to it that the information inside of it is deleted...
i need to use append, so i can't use a simple input...
Anyone can help me?
 
Try to use Scripting.FileSystemObject

set fso=CreateObject("Scripting.FileSystemObject")
set MyFile=fso.CreateTextFile("myfile.txt",true)
MyFile.Write mytext
MyFile.Close

Hope this helps u...

________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top