Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 908 Bytes

File metadata and controls

37 lines (29 loc) · 908 Bytes

Java Notes App – File I/O Practice

Objective

Create a text-based Notes Manager that allows users to:

  • Write notes to a file.
  • Read notes from a file.

Tools Used

  • Java
  • VS Code
  • Terminal/Command Prompt

Key Concepts Covered

  • File Input and Output using FileWriter, FileReader, and BufferedReader
  • Exception Handling with try-catch
  • Using loops and user input with Scanner

📂 Files

  • NotesApp.java: Main Java file that runs the notes app.
  • notes.txt: File created automatically to store notes.

▶️ How to Run

  1. Open terminal or VS Code terminal.
  2. Compile the Java file:
  3. Run the app:
  4. Choose:
  • 1 to write a new note
  • 2 to view all saved notes
  • 3 to exit

Learning Outcome

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.