Character counter is a class that can be instantiated with a text file path, and will hold the text file open and can print the count of each character in the file to the console.
- Clone the repo
cd character-counter
python counter.py
# demo.py
from counter import CharacterCounter
counter = CharacterCounter(file_path) # e.g. sample.txt
counter.display_char_counts()