title: How to get a CString object from a file with CFile::Read() in Unicode?
body: <p>The charset is Unicode. I want to write a string of CString type into a file, and then read it out from the file afterwards.
  I write the string into a file with CFile::Write() method:</p>
  
  <pre><code>int nLen = strSample.GetLength()*sizeof(TCHAR);
  file.Write(strSample.GetBuffer(), nLen);
  </code></pre>
  
  <p>Here is the question: I want to obtain the CString from the file containing the content of strSample. How can I do it?</p>
  
  <p>Thank you very much!</p>