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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you edit and write to a TXT file

Status
Not open for further replies.

sthibodeau

Technical User
Aug 12, 2003
39
0
0
US
Please help i have a TXT file that i need to edit and write to via HTML or ASP?

Thanks
 
Not knowing exactly what you mean by
"Please help i have a TXT file that i need to edit and write to via HTML or ASP?"

here's how to write to txt file with asp.

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine("This is a test.")
a.Close

[sup]
Many .asp question and answers are now in downloadable pdf format and can be found here:[sub] thread333-721855
 
I do not think that will work as that code has fixed text to write to the file.

Here is some addtional informaiton.
I have a TXT file that is viewable from a HTML page which has dates and subjects in it.

I want to create another page that would allow dme to edit and add addtional text to that TXT file such as addtional dates and subjects.

I hope this dhelp - Thank you in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top