cat.java notes
•Separate Exception checking
•read() returns -1 when at the end of the file.
•Reading and writing are always done inside try/catch statements.
–Why?
•I used the 0-parameter read, but ones with arrays work faster.