1234567891011121314151617
void display(emp * emp1, int n) { pRead = fopen("people.dat", "r"); if(pRead==NULL) printf("\nFile can't be opened.\n"); else { printf("\nContents of Phonebook\n\n"); while( !feof(pRead) { fscanf(pRead, "%s\t %s\t %s\t %s\t %s\n", emp1[s].fname, emp1[s].lname, emp1[s].addr, emp1[s].phonum, emp1[s].email); } } }