#include #include #include #define N 100 int main() { FILE *fP; char str[N], *c; char *gpa = strchr(str, ' '); if ((fP = fopen("names.dat", "r")) == NULL) { printf("%s not opened", "names.dat"); exit(EXIT_FAILURE); } do { c = fgets(str, N ,fP); char *gpa = strchr(str, ' '); *gpa++ = '\0'; printf("%s\t%s\n", str, gpa); } while (c != NULL); ...