CSCI 161 - Lecture 9 - File Reading Basics Token-Based Line-Based & Advanced File Processing

Instructor's Class Notes

  1. File Reading Basics
  2.  

  3. Token-Based Processing - Processing input token by token (i.e. one word at a time or one number at a time.)
  4.  

  5. Line-Based Processing - The practice of processing input line-by-line (i.e. reading in entire lines of input at a time). This practice usually requires additional processing of each line seperately.
  6.  

  7. Advanced File Processing - File output and guaranteeing a file may be read