PDA

View Full Version : Wth??



sailerboy
03-19-2008, 09:34 AM
I made a program that reads something from a text file. It ran well the first time, and then after a couple of hours, it stoped working. I got an intresting error. I can't give you the entire code, but this is the part that i think caused the error


FILE *fIn = fopen("whatever.txt", "r");
char buff[128];
while (fgets(buff,sizeof(buff),fIn))
{
}
fclose(fIn);
what it does is opens a file, and logs the contents to a buffer. No idea whats wrong...
http://img367.imageshack.us/img367/2783/wthjy9.jpg

Credzis
03-19-2008, 02:57 PM
why are your files C and not CPP ? :S
Wont help, just a question.

sailerboy
03-19-2008, 05:19 PM
Its because i am using the C library.