See more: C. Hi guys, I just want to read read unicode text file in normal c. Copy Code. Posted 4-May am Coder Block. Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. Posted 4-May am i Posted 4-May am Richard MacCutchan. Add your solution here. OK Paste as. If the stream is at end of file, the end-of-file indicator for the stream is set. By default, this function's global state is scoped to the application. To change this, see Global state in the CRT.
For additional compatibility information, see Compatibility. Skip to main content. Functions: feof , ferror , fgets , fgetwc , fopen , getw. EBADF stream is not a valid stream opened for reading. EIO An input error occurred. That is why I suggested that you search your libraries and other documentation for wide string functions. Your header files that come with C99 should have something for that. Like I said, you won't be able to use it, because you are not building a windows application using windows libraries.
You will need to find an appropriate library call in your headers. Note that you must use glibc Consider using libutf8 version 0. I find a solution to my problem, i want share the solution to any one interested by reading UTF-8 file in C Post Reply. Similar topics PHP. How to read the utf-8 file by php. Read in UTF-8 file. How to read from the binary file of wtmpx.
0コメント