A simple, beginner-friendly Java application that demonstrates how to perform File Input/Output (I/O) operations using Object-Oriented Programming (OOP) principles.
- Add Notes: Write text notes to a local file (
notes.txt). - View Notes: Read and display all stored notes from the file.
- Persistent Storage: Notes are saved in a text file, so they remain available even after the program exits.
- Exception Handling: Uses
try-catchandtry-with-resourcesto handle potential I/O errors gracefully.
- Language: Java
- Concepts: File I/O (
FileWriter,FileReader,BufferedReader), Exception Handling, Classes and Objects.
- Ensure you have Java Development Kit (JDK) installed.
- Compile the program:
javac NotesApp.java
- Run the program:
java NotesApp
Mummana Devi Prasad