Skip to content

jamesbilis/Text-Editor-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📝 Text Editor CLI Project

GitHub repo size Last Commit License

This is a command-line Python application that allows users to read, edit, analyze, and save changes to a text file. It serves as a full-featured text editor with word analysis capabilities.

🚀 Features

  • Load and display text from a .txt file
  • Count all words and show the top 5 most common
  • Count occurrences of a specific word
  • Replace one word with another
  • Highlight words in the text
  • Add or delete custom lines
  • Save edits to file
  • Fully interactive CLI interface

📂 File Structure

text_editor/
├── text_editor.py
├── my_text_file.txt
└── README.md

🔧 How to Run

  1. Make sure you have Python 3 installed.
  2. Place a .txt file named my_text_file.txt in the same folder.
  3. Run the script:
python text_editor.py

Follow the prompts to navigate the menu and apply changes to the file.

📦 Requirements

  • Python 3.x
  • No third-party libraries needed

📘 Example Menu

1) Count All Words
2) Count Specific Word
3) Replace Word
4) Add Text
5) Delete Text
6) Highlight Word
7) Reverse Word
8) Save Changes
9) Quit

👨‍💻 Author

James Bilis — Master's in Computer Science (Merrimack College)

🏗️ Project Purpose

This project fulfills the “Text Parser” milestone in the CSC 6003 course roadmap. It demonstrates file handling, string processing, word frequency analysis, and interactive CLI development in Python.