Hey, I'm having a problem reading a stndard text file in my Win32 program. Before I go any further, let me post the source here.
if((infile = fopen("default.cfg", "rt")) == NULL)
probnum = 2;
Now, if I comment out the two fscanf() lines, it runs fine. If not, it gives me an error and crashes. I wrote to the file using fprintf, in the EXACT same format. I opened the file with notepad and the two lines are there. Line one is 800 and line two is 600. Why can't i read from this file without crashing?