IMPLEMENTATION OF TEXT EDITOR
Aim: To write a C Program fro text editor using files.
- Display options new, open and exit and get choice.
- If choice 1 , call new.
- If choice 2, call open.
- else, exit.
Get the file name and open it in write mode.
Get the text from the user to write it.
Get the file name from user.
If present then open it in append mode.
Display options modify,search,back and get choice.
If choice 1, call modify.
If choice 2, call search.
Get the text to add the existing file.
Write it into the file and save the file.
Get the string to search.
If it is present then print word found.
Else, print word not found.