It means that the compiler does not know what to do when you use a << operator with an object of type ifstream.
Given that an ifstream is for inputtng data, it seems odd that you named it outfile. Perhaps you meant outfile to be an object of type ofstream? So that you can use to to output data.