"Write a program which reads stream of Fahrenheit from a file and writes the corresponding Celsius to another file. User should be prompted for input and output file names. Function named convert_to_celsius( ) must be called to read all Fahrenheit and convert to Celsius. You must pass file input and output stream as arguments to convert_to_celsius() function. Check that the files are opened successfully before using them".
The file doesn't open at all. I'm not sure why this program doesn't run.
change line 9 to ifstream input_file("fahrenheit.txt");
change line 10 to ofstream output_file("celsius.txt");
and remove statements on line 12 and 20.