title: How to convert std::stringstream to std::wstring
body: <p>my question is that how to convert c++ <code>stringstream</code> in <code>wstring</code> or <code>wstringstream</code></p>
  
  <pre><code>stringstream fileSearch;
  fileSearch&lt;&lt;fileOutput.str();
  fileSearch&lt;&lt;"*.jpg";
  cout&lt;&lt;fileSearch.str()&lt;&lt;endl;
  </code></pre>
  
  <p>here is my code. i want to convert this fileSearch stringstream into wstring... can some one help me please with c++ example code...
  i want to use this filesearch stringstream in </p>
  
  <pre><code>int numOfFiles(wstring searchPath);
  </code></pre>
  
  <p>this function...</p>