1 Replies - 522 Views - Last Post: 17 November 2012 - 06:30 AM Rate Topic: -----

#1 complete  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 103
  • Joined: 12-April 07

How do you programatically open a file in c# to append?

Posted 17 November 2012 - 05:05 AM

How do you programatically open a file in c# to append?

I tried searching online for an example and so far I have not found anything.

There is System.IO.StreamWriter and there is System.IO.StreamReader but there is no StreamAppend. Is there some way to use StreamWriter without overwritting the content of the existing file? Is there some way to use System.IO.Stream with some sort of appending criteria?
Is This A Good Question/Topic? 0
  • +

Replies To: How do you programatically open a file in c# to append?

#2 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: How do you programatically open a file in c# to append?

Posted 17 November 2012 - 06:30 AM

The StreamWriter has an overloaded constructor which takes a boolean to determine whether or not you want to append.

More info
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1