I have a simple question. I have a UTF 16 text file to read that starts with FFFE. What are the C ++ tools for working with this file? I just want to read it, filter out some lines and display the result.
It looks simple, but I have experience with regular ascci files, and I'm in a hurry. I am using VS C ++, but I do not want to work with managed C ++.
Hi
Here is a very simple example.
wifstream file; file.open("C:\\appLog.txt", ios::in); wchar_t buffer[2048]; file.seekg(2); file.getline(buffer, bSize-1); wprintf(L"%s\n", buffer); file.close();
c ++ file visual-c ++ unicode utf-16
Andres
source share