Let me guess. You're getting compiler errors about copy constructors being private, aren't you?
readFile() and writeFile() should take references to streams, not copies (i.e. 'std::ifstream &' and 'std::ofstream &', not 'std::ifstream' and 'std::ofstream'). Otherwise, you're telling the compiler that you want to copy the objects, and std::streams can't be copied.
Your i.e., are you suggesting that I change my function parameters to ifstream inFile& and ofstream outFile&, or.. something like just ofstream& and ifstream&?