This project demonstrates file operations in Java including:
- Writing text to a file
- Reading content from a file
- Appending/modifying text in an existing file
- Menu-based user interaction via console
| File | Description |
|---|---|
FileHandler.java |
Java code for reading, writing, and modifying text files |
sample.txt |
The text file used for all file operations |
README.md |
This file (project overview and instructions) |
- Run the program:
java FileHandler
You’ll see a menu: ===== File Handler Menu =====
- Write to File
- Read from File
- Append to File
- Exit
Perform any operation and check sample.txt file.