I want to create a file with the given location path that contains Unicode characters. I've tried the below code but after compiling my code no file is generated.
wchar_t path = (wchar_t)"D:/File/ফোল্ডার/filename.txt";
std::wofstream file(&path); //open in constructor
std::wstring dat((wchar_t*)"Data to Write");
file << dat;