Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 1.36 KB

readme.md

File metadata and controls

33 lines (28 loc) · 1.36 KB

Text-editor

This is a simple text editor, which requests the user to enter the file name (File to be modified) Subsequently, the system checks whether a file with the same name exists in the directory where the main.CPP is or not. In case the file exists in the pre-told directory, The menu will be displayed. Unless the file exists, The system creates a new file with the given name. Thereafter the system displays a menu to the user with a variety of options.

UI

System asks for the file name (file to be modified)

Enter file name: If the file already exists, the system prints the following message:

#################This File Already Exits#################

IF it's a new file, the system prints another message:

#################This A new file, I Created For You#################

menu:

!! Welcome !!

  1. Add new text to the end of the file
  2. Display the content of the file
  3. Empty the file
  4. Encrypt the file content
  5. Decrypt the file content
  6. Merge another file
  7. Count the number of words in the file.
  8. Count the number of characters in the file
  9. Count the number of lines in the file
  10. Search for a word in the file
  11. Count the number of times a word exists in the file
  12. Turn the file content to upper case.
  13. Turn the file content to lower case.
  14. Turn file content to 1st caps (1st char of each word is capital)
  15. Save
  16. Exit

Your choice: