unicode « fopen « C File Q&A

Home
C File Q&A
1.array
2.binary
3.delete
4.Development
5.directory
6.fgets
7.fopen
8.fprintf
9.fscanf
10.fwrite
11.header
12.include
13.input
14.LINE
15.linux
16.open
17.output
18.pointer
19.read
20.size
21.string
22.struct
23.Text
24.windows
25.write
C File Q&A » fopen » unicode 

1. Opening a Unicode file in pure C    stackoverflow.com

I am trying to open a .txt file that is wholly Chinese. Can I use normal fopen/fclose procedures to it even though the stream would be 100% Unicode or are there ...

2. UNICODE variant of fopen or ofstream to be ANSI compliant.    bytes.com

mihai wrote:[color=blue] > I need to open an file with an unicode name, and i cannot find an > proper way to do this.[/color] 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.

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.