File Input and Output


      Learning Objectives
      Be able to open a file to read from or write to
      Understand the different modes in which files can be opened
      Know how to check if the file has been opened correctly
      Be able to read from or write to the file
      Be able to close a file after use
      Understand how to use functions such as feof()

      Source Code from Notes
      Additional Examples
      Quick Check Exercises
      Additional Exercises to try
      Test Cases for Tutorial 8


      Previous Lecture Home Next Lecture