I am trying to figure out why this is not printing, I am trying to print each letter from a text file that is inputted through command prompt, but I am just getting an empty output... What am I doing wrong, and why does this not work? I feel like this logically should work. Thanks.
int main(int argc, char *argv[]) {
    FILE *fp;
    int i;
    for (i = 1; i < argc; i++) {
        printf("%s\n", argv[i]);
        fp = fopen(argv[i], "r");
        while (!feof(fp)) {
            puts(fp);
        }
        fclose(fp);
   }    
   return 0;
}
 
     
     
     
    