Please help me change “fgetc” to “fgets” !!!!
and explain a little bit please
![#include <stdio.h> #include <stdlib.h> void printFileContents(char *fileName) FILE *fptr = fopen(fileName, r); if (fptr NULL) printf(Cannot open file %sn, fileName); return /l Read contents from file char by char, and print char c - fgetc(fptr); while (c!- EOF) printf (%C, c); c fgetc(fptr); int main(int argc, char *argv[l) // there are (argc-1) params of files, we can read and print int I for(i-1; ikargc; i+) printf( Processing File %sn, argv[i]); printFileContents(argvli]);](https://media.cheggcdn.com/media%2F925%2F9256c6f4-e02d-471f-af55-d96b87a894d0%2Fimage.png)
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
Please help me change “fgetc” to “fgets” !!!!
and explain a little bit please
![#include <stdio.h> #include <stdlib.h> void printFileContents(char *fileName) FILE *fptr = fopen(fileName, r); if (fptr NULL) printf(Cannot open file %sn, fileName); return /l Read contents from file char by char, and print char c - fgetc(fptr); while (c!- EOF) printf (%C, c); c fgetc(fptr); int main(int argc, char *argv[l) // there are (argc-1) params of files, we can read and print int I for(i-1; ikargc; i+) printf( Processing File %sn, argv[i]); printFileContents(argvli]);](https://media.cheggcdn.com/media%2F925%2F9256c6f4-e02d-471f-af55-d96b87a894d0%2Fimage.png)
PayPal Gateway not configured
PayPal Gateway not configured