Rereading a large input file

Does anyone know how to reread a large input file? For an assignment I am currently doing I have to read in 1000 numbers store them in array, then reread the file and search for the numbers in the array. I make sure to use inputFile.clear() and inputFile.seekg(0) before rereading the file to position my cursor back at the beginning. I have it working for small input sizes like 6 but it doesn't work for the large input file of 1000. My program just keeps searching for the last number in the input file and my guess is because seekg() couldn't properly reset the cursor back to the beginning. Any help regarding this matter would be greatly appreciated.
Some implementations of seekg get problems when your file is more than 4GB's large, I am not aware of any that has problems with smaller files, and most can work with far larger files. If it doesn't work, you are doing something wrong.
thanks for the reply. I'll see if I making a different error that is causing the strange behavior.
Topic archived. No new replies allowed.