Hello,
I think you can find such a simple editor among the numerous examples provided with Borland C++ 4.5 or 5.0 (I don't know about previous versions).
I can't remember which one right now, but I've seen it, with the complete source code, and the usual fonctionalities: new, save, save as...