Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

std::getline and wfstream

$
0
0
std::wfstream f;
f.open( L"file.txt", std::ios::in); //error: no matching function for call to 'std::basic_fstream<wchar_t>::open(const wchar_t*, std::ios_base::openmode&)'

My compiler is giving me an error when reading this line, can anyone spot what I am dong wrong?

Thanks in advance.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>