infp is a pointer to a FILE structure, which is returned by fopen(). The statement is actaually written incorrectly. More accurately it should be while( fgets(buf,MAXLINE,infp) != NULL) fputs(buf,outfp); There is not need for feof() because fgets() returns NULL when end-of-file is reached.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343