## Unicode text file

I want to write a Unicode text file to disk. The code I have is as follows:

PHP Code:
``` #include <iostream> #include <fstream> #include <windows.h> int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, wchar_t* cmdParam, int cmdShow) {     std::wofstream file;     file.open(L"data.txt", std::ios::out);     file << L"data";     file.close();     return 0; }  ```
My problem is that the above looks like it creates an ANSI text file. Isn't the output supposed to be Unicode? I don't understand this since I'm using wide functions.