Q: How to make a simple text editor?

A: MFC AppWizard can help you to create in less than one minute a base text editor that implements:

text editing;
open and save from/to files;
...