A File pointer is a pointer that is used to handle and keep track of the files being accessed. A new data type called “FILE” is used to declare file pointer. This data type is defined in stdio.h file. The file pointer is declared as FILE *fptr. Where ‘fptr’ is a file pointer.