title: Read Unicode UTF-32 file into wstring
body: <p>For UTF-16, we can read and convert it to <code>wchar</code> at the same time. For example, </p>
  
  <pre><code>std::wifstream* file = new std::wifstream(name, ifstream::binary);
  locale lo = locale(file-&gt;getloc(), new std::codecvt_utf16&lt;wchar_t, 0x10ffff, std::little_endian&gt;);
  file-&gt;imbue(lo);
  </code></pre>
  
  <p>How could I do the same for UTF-32 input?</p>