I've been stuck just trying to figure out what's wrong with my while loop and I can't get it...
I'm opening up a .dat file and I want the while loop to keep looping until it reads a string that says, "End of file" Here's what I have.
Code:
fgets (item, 25, inputfile);
printf ("\n%s", item);
while (item != "End of data")
{
printf ("\n%s", item);
/***** blah, blah, blah.... ******
***** update to read the next item ******/
fgets (item, 25, inputfile);
}
Anyone know where I've gone wrong???
~fatty acid