Quote:Original post by Nemesis2k2
Have you checked to see if fopen is actually succeding in opening the file?
Nice call.
I disected the 'f' and found it was broken up into several components. I did some comparisons with other programs I had written to determine if a specific value changed when it loaded sucessfully/differently. It wasn't apparanent.
Than I replace chrUserFile with "1.reg" and ran the program again, and it loaded the data correctly.
I'm not sure why that fixed it, but at least I have a basis to work with now.
Thanks!
rating++;
Edit: Found it! strcpy(*,*), two pointers, so saying strcpy(array, "1.reg") is invalid! I used sprintf(array,"%d.reg",1) and it fixed it.