title: "Illegal characters in path" error using MemoryStream
body: <p>I am going in circles with this. But all I am doing is, reading a simple text file into a byte array and reading a byte array into memory stream. Take a look at the code below.</p>
  
  <pre><code>var filePath = Directory.GetCurrentDirectory() + "\\TextFile1.txt";
  var fileContent = System.IO.File.ReadAllBytes(filePath);
  
  using (var ms = new System.IO.MemoryStream(fileContent)) {}
  </code></pre>
  
  <p>And I get an error "Illegal characters in path".</p>
  
  <p>Here is my text file content: </p>
  
  <p>ASJJDASDA</p>
  
  <p>ASDJKAJSDJKASJDKLASJD</p>
  
  <p>ASDASDASD++++++++++</p>
  
  <p>++++++++</p>
  
  <p>Any ideas?</p>