I'm new in C++ and for practicing puprose I wanted to write a program that can read Romanji and write it back in Hiragana.
Everything work's except for writing it in the file. I use "wofstream" and "wstring" for saving japanese characters.
When the program is done, the file is completly empty and 0kb big, so it has nothing written in.
std::wofstream out; out.open(JaRoConverter::txt); std::wstring cache; cache = ConvertRoToJa(); out << cache; out.close(); In the debugger of vs2019 is in "cache" everything correct! But in the next line, nothing happens..
I don't understand the problem.. I'm grateful for any help!
EDIT: Thanks to walnut the probleme is solved!