How do i make a program that acts in the same way as microsoft word?

The only things i need to know for this program is Saving and Printing the string value in the file.