Thanks,
So...I have the my function that's called : "float_to_fixed".
Code:
fixed_point_int = float_to_fixed ( converted_string_to_float )
// "converted_string_to_float" is the float from the original file.
// "fixed_point_int" is the value that I needs to be written to the second file as a string
Can you help me complete the code ?
Code:
#include <iostream>
#include <fstream>
using namespace std ;
int main ( )
{
ifstream file_in ( "file_in.txt", ios::in | ios::app | ios::binary ) ;
ofstream file_out ( "file_out.txt", ios::out | ios::app | ios::binary ) ;
// read string as float, apply function , write int as string
}