View Single Post
Old Mar 28th, 2005, 8:43 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Stick some error-handling code in - for every if, there should be an else that prints out where it went wrong. For example, as a counterpart to the very first if statement, add this to the end:
	else
	{
		printf("ERROR: Could not open the file.\n");
		return EXIT_FAIL;
	}
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote