Please see the link to the youtube video in my signature.
If you can stand my voice and horrible narrating it will show you one of the best ways to figure out a problem like that, assuming you're using Visual Studio.
Also if you're copying a project you may want to make a blank project, then copy and paste the files you want to work with into the new empty project's directory (Documents/VS2008/projects usually), then in the IDE, right click on the project name and select "add existing item" to add them to the new "solution"/project.
pseudorandom21
Practically a Posting Shark
890 posts since Jan 2011
Reputation Points: 216
Solved Threads: 111
You have not opened the stream successfully - the FILE* pointer was NULL at the time you did an fseek().
Verify that fopen() returned a non-NULL pointer. (Perhaps you are using a relative path to file which is no longer correct for the project copied into a different directory).
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287
"Another effective technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it takes no more than a few sentences, followed by an embarrassed ``Never mind, I see what's wrong. Sorry to bother you.'' This works remarkably well; you can even use non-programmers as listeners. One university computer center kept a teddy bear near the help desk. Students with mysterious bugs were required to explain them to the bear before they could speak to a human counselor."
- Brian W. Kernighan and Rob Pike in 'The Practice of Programming'
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287