Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you programatically open a file in c# to append?
#2
If you want to simply write text by appending it to the existing file just create a new stream writer
Code:
StreamWriter sr = new StreamWriter("path to file", true);

Whent set to true it will append the text to the existing file. If the file does not exist the StreamWriter wil create a new file
Sssssssssoftware developer...


Messages In This Thread
Re: How do you programatically open a file in c# to append? - by Snake_eyes - 11-17-2012, 11:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)