I am trying to read integers from a text file as an exercise. I have included the code from my program. Watching the values of variables in the program in the debugger, i notice that after "f=fopen", f always has the value {_ptr=0x00000000000 <Bad Ptr>. I attempted to resolve this with the fseek function but it doesn't make any difference. When the fscanf statements are called, an Access Violation occurs, terminating the program.
I guess I didn't state my post in the form of a question. What is causing the issue with the pointer? Is it was is causing the program to crash? How do I resolve this issue?