Here's my project finally.
It's name is C.L.O.S.E - The Command Line Open Source Editor
Please review and comment.
Mention errors if any,
Also, for this code to work.
Please download open.cpp, find.cpp, new.cpp, append.cpp, compile them and place all of them including the main source in a single directory. Now compile main source and run.