I'm not exactly sure what you are looking for when you ask where the characters are stored otherwise I could give you more help than saying "What do you mean" LOL... an open sourcetext editor is similar to windows notepad created with the C++ Win32 API this link takes you to the page of the program but the actual code isn't all there you have to goto the homepage and follow all of the lessons or you can download the source
http://www.winprog.org/tutorial/app_four.html
If you can give me a more exact question I may be able to help you better
~ Geo
~ Don't take life too seriously, you'll never get out alive!