I'm using mostly wstring
and wide characters in my application. I'm saving data to files using ofstream
and large amount of conversions in my code.
I need my save files to be easily editable by hand, therefore I'd like to keep current file encoding. Now I'm trying to make my code cleanier and get rid of these conversions, so I'm thinking about moving to wofstream
and wifstream
.
If I use wofstream
will files have same (current) encoding or will files be encoded in UTF-32 ( UTF-16 for Windows ) ?