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.
var filePath = Directory.GetCurrentDirectory() + "\\TextFile1.txt";
var fileContent = System.IO.File.ReadAllBytes(filePath);
using (var ms = new System.IO.MemoryStream(fileContent)) {}
And I get an error "Illegal characters in path".
Here is my text file content:
ASJJDASDA
ASDJKAJSDJKASJDKLASJD
ASDASDASD++++++++++
++++++++
Any ideas?