title: C#: Prepending to beginning of a file
body: <p>What is the best way to add text to the beginning of a file using C#?</p>
  
  <p>I couldn't find a straightforward way to do this, but came up with a couple work-arounds.</p>
  
  <ol>
  <li><p>Open up new file, write the text that I wanted to add, append the text from the old file to the end of the new file.</p></li>
  <li><p>Since the text I want to add should be less than 200 characters, I was thinking that I could add white space characters to the beginning of the file, and then overwrite the white space with the text I wanted to add.</p></li>
  </ol>
  
  <p>Has anyone else come across this problem, and if so, what did you do?</p>