Using StreamReader/Writer to write to txt on Webhosting...
Hello, Really what I want to know is how to send Text to a file like website.com/file.txt. Modifiy, not create or erase other data. Can anyone help?
[148 byte] By [
Drags111] at [2007-11-11 11:59:31]

# 1 Re: Using StreamReader/Writer to write to txt on Webhosting...
It is not possible to modify the contents of a file on a Web server directly from the client. You would have to run code on the Web server to modify the file. You could send parameters in a Web request, such as the file name and the text you'd like to insert. Then have the receiving page (written in ASP or PHP or some other server-side language) modify the file.
# 3 Re: Using StreamReader/Writer to write to txt on Webhosting...
Maybe. Is your Web server running Windows? Do you have ASP or ASP.NET available on your hosting account? If so, please post an example of the file and describe how you would like to modify it.
# 4 Re: Using StreamReader/Writer to write to txt on Webhosting...
Windows, ASP.NET
website.com/textfile.txt
Inside testfile would be sumthin like:
User ID: 1
and modify to like add another UserID
User ID: 1
User ID: 2
and so on/ So like add text to the file