A simple text-based notes manager built in Java using FileReader and FileWriter.
This program lets you add, view, and clear notes directly from the terminal.
All notes are stored in a text file (notes.txt) for persistence.
- βοΈ Add Notes: Write and save notes to a file.
- π View Notes: Display all saved notes.
- ποΈ Clear Notes: Delete all notes at once.
- π Persistent Storage: Notes are saved in
notes.txtfile.
- Java (JDK 8+)
- VS Code / IntelliJ IDEA (any IDE works)
- Terminal / Command Line
NotesManager.java # Main source code
notes.txt # File where notes are stored (auto-created)
README.md # Project documentation
- Save the code in
NotesManager.java. - Open terminal in the project folder.
- Compile:
javac NotesManager.java
- Run:
java NotesManager
- Follow the menu to add, view, or clear notes.
- Create a new Java project in IntelliJ.
- Add a class
NotesManagerand paste the code. - Run using the green
βΆοΈ button at the top-right. - Notes will be stored in
notes.txtinside the project folder.
--- Notes Manager ---
1. Add Note
2. View Notes
3. Clear All Notes
4. Exit
Enter your choice: 1
Enter your note: Finish Java project
Note saved!
Sunidhi Singh
B.Tech CSE @ Meerut Institute of Technology (2026)