Is there any tutorial, or information webpage, somewhere that would explain how to use wchar_t's and wfstream's? Do they act like normal char's and fstream's? How to I specify unicode characters in C++? How do wchar_t and wfstream respond to normal ASCII input (given that unicode is for the most part backwards compatible with ASCII)? Basically, could you show me an implementation of the function:
int countOccurencesOfUnicodeCharacter(const char *filename, int unicode)
{
//somehow return the frequency of 'unicode' in the file specified by filename.
//of particular interest to me is how to get unicode characters and how to compare with them.
}
Once I have the constituent parts of that function I should be able to adapt them to my needs.