/* openfile.h * Header file for function to open a file to read from or to write to * Authors: Amit Nangalia * Last modified: 15th February, 2000 */ /* Purpose: open a file in the mode specified in the function call. * Post-conditions: File is opened (created for writing if didn't exist) * in appropriate mode. * Parameters: the mode in which to open the file - the mode can be a * combination of three letter r(read), w(write) and a(append) */ FILE *filereader(char mode[4]);