Series 3: File I/O
Reading and writing files, exception handling, and processing real-world data with Scanner and PrintStream.
Lessons
3.1: File Input with Scanner
~20 min · Week 7 · Prereq: Lesson 1.8
Scanner(new File(...)), FileNotFoundException, throws vs try/catch, reading until EOF with hasNext loops, and try-with-resources.
3.2: File Processing Patterns
~20 min · Week 7 · Prereq: Lesson 3.1
Line-by-line, token-by-token, and two-Scanner patterns. Counting and summing from files. Writing output with PrintStream.
Previous series: ← Series 2: Arrays & Algorithms
Next series: Series 4: Object-Oriented Programming →