while i using f.open("file_name.ext") ; i prefer to put a string instead of fix name
Expand|Select|Wrap|Line Numbers
- string s;
- s="name1.ext";
- ofstream f;
- f.open(s);
error C2664: 'void std::basic_ofstream<_Elem,_Traits>::open(const wchar_t *,std::ios_base::openmode,int)' : cannot convert parameter 1 from 'std::string' to 'const wchar_t *'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
help me out plz