title: ifstream wchar_t minGW c++
body: <p>I use eclipse with minGW 32.
  I created a class:</p>
  
  <pre><code>Data(HWND hwnd,  wchar_t szFileName[MAX_PATH])
  {
  std::vector&lt;std::string&gt; fileRows;  
      string sIn;
      ifstream infile;
      infile.open(szFileName);
      infile.seekg(0,ios::beg);
  
      // fill vector with file rows
      while ( getline(infile,sIn ) )
      {
         fileRows.push_back(sIn);
      }
  }
  </code></pre>
  
  <p>but the <code>ifstream</code> in MinGW could not resolve the <code>wchar_t</code>.
  How can I store the file lines int the <code>fileRows</code> vector? 
  Absolutely sure that the file lines are string not wstring. So I should store the lines in a <code>std::vector&lt;std::string&gt;</code> </p>