ah-ha! i didn't realize that. that probably explains his problem then!

personally i would have passed the filename and created the ifstream in the function, but he seemed to want to do it the other way.