just had a slight problem here with my input file...first off i declared a large class called Book....and then in the main function i have put ifstream inFile. I read from the file and such and it gives me the error

inFile' uses undefined class

I am not quite sure how to define the ifstream in the class or really how to approach this. thanks for the help

have you got

#include <fstream.h>

Somewhere?

If you have a problem there is a good file access tutorial on the c/c++ tutorials forum (fstream tutorial) which is very in depth and should solve any problems you have... :)