📂 Java File I/O (Input/Output)

File I/O lets you read data from files and write data to files. Java provides several classes in the java.io and java.nio packages for this.

📝 Example: Writing to a File

Output will appear here...

📖 Example: Reading from a File

Output will appear here...
💡 Tip: Always close your file readers and writers to avoid resource leaks.