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
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