Lecture 21 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

Write a segment of C code that will:
  - open a file for writing.  The file will be stored in the current directory
    under the name "student.dat"
  - if the file could not be opened, print an error message
  - otherwise, write these three lines to the file:
               John A. Student
               WPI
               2011
  - close the file