/* more fgets and fputs, with external files */ #include int main() { char name[30]; FILE *fileptr; fileptr = fopen("07_input.txt", "r"); fgets(name, sizeof(name), fileptr); fclose(fileptr); printf("\n\nThe name is:\n"); puts(name); fileptr = fopen("07_output.txt", "w"); fputs(name, fileptr); fclose(fileptr); }