str A pointer to a character string that is large enough to hold the information fetched from the file. maxchar The maximum number of characters to fetch. file_ptr A file pointer.