How would I make a file with Unicode characters in it? I don't know why this is so difficult to do, in any other language, you don't even have to specify that it's Unicode.
This is what I have
#include <iostream>
#include <fstream>
using namespace std;
int wmain()
{
__wchar_t chara = '☺';
wofstream f("poopa.txt");
f << chara;
f.close();
return 0;
}
wmain, and wofstream (Meaning wide, or Unicode) don't work.