UNICODE variant of fopen or ofstream to be ANSI compliant.

M

mihai

I need to open an file with an unicode name, and i cannot find an
proper way to do this.

Any help is appreciated.

Thank you,
Mihai.
 
R

roberts.noah

mihai said:
I need to open an file with an unicode name, and i cannot find an
proper way to do this.

Try passing the return of c_str() from a wstring to open. It is not in
the current standard but may be in future versions and may or may not
be implemented in your environment.
 
R

Roland Pibinger

I need to open an file with an unicode name, and i cannot find an
proper way to do this.

You probably need to use a platform-specific function (e.g. Windows
_wfopen).

Best wishes,
Roland Pibinger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top