title: Binary writer inserts extra character in writing
body: <p>Hi I am trying to save xml to a file and it keeps adding different character at the start of file. </p>
  
  <p>Code I have is </p>
  
  <pre><code>string strCXML2;
  
  strCXML2 = "&lt;input type=" + "\"" + "hidden" + "\"" + " name=" + "\"" + "cxml-urlencoded" + "\"" + " value=" + "\"";
  strCXML2 = strCXML2 + "&lt;!DOCTYPE cXML SYSTEM " + "\"" + "http://xml.cxml.org/schemas/cXML/1.2.023/cXML.dtd" + "\"" + "&gt;";
  
  //&lt;snip&gt;
  
  BinaryWriter bw5 = new BinaryWriter(File.Open(Server.MapPath("~/data/test/test19.xml"), FileMode.OpenOrCreate))   
  bw5.Write(strCXML2); 
  bw5.Close();
  </code></pre>
  
  <p>This return following file in xml "}" at start each time it is some other junk character</p>
  
  <pre><code>}&lt;input type="hidden" name="cxml-urlencoded" value="&lt;!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.023/cXML.dtd"&gt;
  </code></pre>
  
  <p>Any ideas why it is doing this?</p>