Hi,
Ensure the reader has been created with the character encoding corresponding
to that of the actual source file content. If, say, your file is in ASCII or
in Windows-1252, reading it as a Unicode file will obviously fail.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"MrKrich" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
I try to use the StreamWriter to write from file reader
(my file reader is not a text file) and I got this error
message
streamWriter.Write(fileReader.ReadToEnd)
"Found a high surrogate char without a following low
surrogate at index: 325. The input may not be in this
encoding, or may not contain valid Unicode (UTF-16)
characters."
I don't know what does it mean. Can anybody help?