you could do something like this:
fscanf(fp,"%s%s%s", List[i].ID, List[i].YR, List[i].lname);
// get the first name separately because it may be composed of
// two or more names with spaces, so fscanf() will not work with this.
fgets(List[i].fname, sizeof(List[i].fname, fp);
Of course you will have to put the above in a loop after opening the file for reading.
Last edited by Ancient Dragon; Jan 7th, 2009 at 12:04 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.