Original Post
Hello! I've searched for this issue before posting, but I can't find a solid answer to my issue. I have a program that reads in info from a text file using std::ifstream, but the text file may or may not be encoded in Unicode. I stumbled upon this fact when I saw two files with seemingly identical contents, but with two completely different file sizes... Open both files in Notepad, and they look completely identical, but they have two different file sizes. What's frustrating me is that one can be opened and read by 'std::ifstream', and one cannot. All I want to do is open a text file that may be encoded in Unicode. This doesn't work:
ifstream inTxt("inFile.txt"); Any suggestions? Thanks in advance for the help!