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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.