Skip to content

This is a simple text editor I coded in Java. It can read or create a .txt file in which the user can add, replace, delete, save, search or count words occurrences.

Notifications You must be signed in to change notification settings

MohannadAlnahhas/Text_Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Text_Editor

This is a simple text editor programmed by java.
I programmed this editor as required from one of the assignments my instructor gave to us in a course called "Data structures and algorithms" in 28/03/2020.

The program has a class called "ProgramTest", which takes an input .txt file name (this is the main class you should use).
If there is a .txt file with the same input name given; it will open it giving the user the ability to edit the file.
Else if the .txt file doesn't exist; it will make a new empty file in which the user can start editing.
Else if there is not given .txt file name, it will also create a new file where the user has to specify the name later when saving it.

The commands that the program can do:
1- Appending new lines after the last line.
2- Deleting lines.
3- Editing characters ( a cursor will appear to replace, delete, or add a new character in the current line).
4- Jumping to a given line number.
5- Searching for a given word.
6- Printing commands list ( what and how to use the commands).
7- Displaying the whole document by printing the lines.
8- Saving the edited file to a .txt file.
9- Creating a report (as .txt file) that has all the words in the document and how many times it occurred.

Feature 9 may take some time if the document is large.

About

This is a simple text editor I coded in Java. It can read or create a .txt file in which the user can add, replace, delete, save, search or count words occurrences.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages