Kirby
Lifer
I'm trying to writing a program for my CS class that uses files (fstream). My program compiles but i get a error when linking (LNK1104). I'm using Visual Studio 2005. I'm opening two files, and comparing them. Here's the function...
UPDATE I changed getch() to _getch() and I think it got rid of the linking problem, but now I'm having trouble with the files. I want it to open the first file, open the second file, compare, then go to the second set of data in the second file, and continue checking until it reaches the end of the second file (register.txt). It should close register and open it again, making register start over checking. well apparently it's not starting register over when i close and open it again. Does anyone have a clue how to start a file over?
UPDATE I changed getch() to _getch() and I think it got rid of the linking problem, but now I'm having trouble with the files. I want it to open the first file, open the second file, compare, then go to the second set of data in the second file, and continue checking until it reaches the end of the second file (register.txt). It should close register and open it again, making register start over checking. well apparently it's not starting register over when i close and open it again. Does anyone have a clue how to start a file over?