• Associate a low-level input (i.e., FileInputStream) or output (i.e., FileOutputStream) stream with a File object
  • Describe how low-level file I/O works (i.e., reading or writing of byte data, importance of the sequence of data)
  • Describe how high-level (DataOutputStream and DataInputStream) file I/O works (i.e., methods for reading and writing of primitive data types, association with low-level stream, the importance of the sequence of data)
  • Explain why it is important to close a stream when file operations are complete
  • Use the try-with-resources construct to ensure resources are closed appropriately
  • Explain what the PrintWriter class is used for
  • Read text data from a file using Scanner objects
  • Use the Files class to read/write text files
  • Explain the difference between binary and text files

Note taking requirement

Don't forget to submit your notes in Canvas prior to classtime.

Reading

Intro [4:48]

File IO Streams [5:03]

High Level IO (primitives) [6:31]

Text IO [2:22]

Object IO [5:40]

Code Sample of Raw IO [14:29]