I need to read a unicode file using C or C++. I have tried several pieces of code, but none of those seems to work. The following code, for example, should read the first line of the file and write it to some output file, but it doesn't do that. The outputfile is still empty after I run the program.
Neither C nor C++ know what "Unicode" means. They only understand files as a stream of bits. If you don't tell it how to interpret this "Unicode" file, no one will.