I would like to sort a linked list in alphabet order.
I have a text file created by notepad
name.dat
Jeff
Ann
Marry
Joe
How can I read this string from file into array?
FILE *fPtr
if (fPtr = fopen("c:\\data\\name.dat","r")) == NULL
printf(" File does not exist\n ");
else
{ blah blah blah }
I also don't know how to check for the end of line.