This unit is about File I/O as well as Exceptions and try-catch.
By the end of this unit, you should know
- the difference between Java errors and exceptions
- the difference between checked and unchecked exceptions
- examples of checked and unchecked exceptions
- which exceptions one should not put in try-catch blocks
- how try-catch works
- how to have multiple catch blocks
- try-with-resources (optional)
- try-catch-finally (optional)
- how to make a Scanner object and use the scanner to read in integers, doubles, a word, a sentence.
- the purpose for buffered reader/writer
- how to read in a file, line by line [write the code to do this] (not in 2022)
- how to write to a file, line by line (not in 2022)
- why one needs to close() or flush() a file, and what flush means.
- where text files are stored in Eclipse (in the Java Project folder)
- how to create a resource folder (Java (Eclipse?) can only read from this, not write to it) - not done yet.
You don't need to know the syntax of BufferedReaders, Printwriters, etc. That can be looked up