Create a text-based Notes Manager that allows users to:
- Write notes to a file.
- Read notes from a file.
- Java
- VS Code
- Terminal/Command Prompt
- File Input and Output using
FileWriter,FileReader, andBufferedReader - Exception Handling with
try-catch - Using loops and user input with
Scanner
NotesApp.java: Main Java file that runs the notes app.notes.txt: File created automatically to store notes.
- Open terminal or VS Code terminal.
- Compile the Java file:
- Run the app:
- Choose:
1to write a new note2to view all saved notes3to exit
You will learn:
- How to persist user data in a file using Java.
- How to handle input/output exceptions properly.
- The basics of building a text-based application.