hello
the following part of the programme returns <null> and i cant see the mistake..
the file1.txt contains a list of names and last names so it was supposed to print one name at a time.
Code:FILE *source; char line[100]; typedef char* type; type x; source = fopen("file1.txt","a+"); if (source == NULL){ printf("ERROR!!!file not found!"); } while(!feof(source)){ x = fgets(line,100,source); printf("%s\n",x); }