In this section:
FILE_OPENW is analogous to FILE_OPENR but allows the user to type in a new file name, since it is assumed that the file is required for writing.