For example;
I have a while loop that loop through the file
while (fgets(line, MAXLINE-1, filePointer)!=NULL){
// do something;
}
fclose(filePointer);
after the loop finish, if I call fgets on the same file will return me null because fgets already finish the whole file. Then how should I read through the file again if I want to use fgets()?