I have a text file which was created with a C# program like this:
using (StreamWriter sw = new StreamWriter(defaultFile, false))
Where profile_name = 10.67µm steps to 277.42µm
This file created has a single line that reads as follows when I open it in Notepad:
10.67µm steps to 277.42µm
Note the µ character.
I have a C++ (Visual Studio 2010) project that needs to read this line into a CString, but I always get garbage using CStdioFile.
I even tried using that CStdioFileEx (http://www.codeproject.com/Articles/4119/CStdioFile-derived-class-for-multibyte-and-Unicode
) but still I get only junk.
What is the proper way to read this value into a C++ CString?