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

ASP to Text file from a Form

Status
Not open for further replies.

BLEND

Technical User
Nov 3, 2009
5
US
trying to create a text file on a form submission with ASP. will also need to read that text file so updates and changes can be made to it. anybody have one or know of one? thanks!
 
thank you for such a quick and informative response! what i would like to do is on an html form, write to a text file, but also be able to add or delete contents of that text file....always. would be all paragraph type text. not like guest book entrys.
 
Why not just store it all into a database? It seems like you want to be able to search and replace on that text file, and add stuff into certain parts of the file. Sure, this can be done, but a more efficient solution would be to store all the data in a database table, and just read from that table.

Anyhow - if you need the basic lowdown on how to read and write text files, check out faq333-504.

If you need more help, post back.

leo
 
actually the reason that i am trying to do it this way is: i have been parsing text through a database using XML, however, it has been incredibly slow to load into flash, so creating a text file, i know, will be faster. my example of this is at:
 
oh ok.
it seems like you would need to use the FSO, then put that all into a string, and use some Replace functions and/or mid functions to take out/put in what you need.

once you're done with that, you would need to rewrite the whole file again.

If you're appending to the file, though, you just need to open the file up with the 8 (for appending), then append unto the end of the file.

I don't know if I'm helping at all... why not post an ex of your file, then what you want the file to look like afterwards.

leo
 
would you happen to have a sample script? i am not that familiar with creating ASP scripts.
 
of what? reading and writing text files? just check out FAQ333-504 on how to read and write to a file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top