I want to convert a ASCII based profile system into Unicode without changing much of game code. Currently Most of thing's that i save in profile file are ASCII but there are few thing's that i need to save as wchar_t , I don't want to create seperate file for them and want to put them in same file. so basically i want this file to be unicode so i can write wchar_t in it + I want to write ascii in it too so that i don't have to change alot of code in game and convert everything in wide character. Same goes for reading too.
Is it possible to read ASCII & Wide Character from same file keeping the file a unicode.
This is process i will go through
Read from a basic profile - LoadProfile() All ASCII ,,
then i will save this file as unicode file as there are going to be some w char types too ,,
then I want to read & write both Unicode & ASCII in that file during gameplay..
this is how my file will look ..
ProfileName
88
88
43
LevelName
AnotherLevelName
Text (ASCII)
323
Text (ASC(())
434
43
???? ??????? ??? (Unicode Text)
???? ??????? ??? (Unicode Text)