saving changes in cppfile & hfile classes when editing text