new FileWriter("data.txt", true) will:
Files
Reading files with Scanner, writing with FileWriter/PrintWriter, and splitting lines with String.split.
How to read this page
Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.
Files Revision
Notes
Remember Integer.parseInt(string) to turn text fields into numbers.
FileWriter Class
Notes
FileWriter writes characters; new FileWriter(name, true) APPENDS instead of overwriting.
Exam angle
Split Method
Exam angle
"Ali:20:A".split(":") returns an array of length:
Split Coding Example
Notes
Read a line, split it, parse the numeric fields, display.