FILE *in_file;

This is C routine for file IO.
You should use iostream



while (!EOF(in_file))

How you came out with this line of code?