digitaldrew
Well-known member
- Joined
- Nov 10, 2012
- Messages
- 167
- Programming Experience
- Beginner
Hey everyone. What I am trying to do is write a line (string) to a remote text file on my web server everytime a "success" is returned. I've tried this using streamwriter but that doesn't like me using the remote location (www.mydomain.com/file.txt) since it isn't local.
After reading some more I've found that WebClient and Httpwebrequest may be the two routes I should be looking at going. Problem is, I want to append this text everytime on a new line and not overwrite the file. From my understanding, WebClient won't be able to do this..
I've tried doing this with Httpwebrequest and it doesn't actually write anything to the text file. Any help would be appreciated!
After reading some more I've found that WebClient and Httpwebrequest may be the two routes I should be looking at going. Problem is, I want to append this text everytime on a new line and not overwrite the file. From my understanding, WebClient won't be able to do this..
I've tried doing this with Httpwebrequest and it doesn't actually write anything to the text file. Any help would be appreciated!