I'm working on a simple program to analyse some data and I'm having trouble making multiple passes over my file. I've been trying to do something along the lines of
for(n=0;n<Nmax;n++){
while (! inFile.eof() ){
crap done here;
};
};
however it won't do more than one pass over the file. Is there a way I can make it pass over the file multiple times like this?