Opening and Closing Files (10.2)
fp = fopen( fileName, r );
fp is of type FILE* (defined in stdio.h)
fopen returns a pointer (or NULL if unsuccessful) to the specified fileName with the given permissions:
- r read
- w write (create new, or wipe out existing fileName)
- a append (create new, or append to existing fileName)
- r+ read and write