Petroleum test = Set_Petroleum_values();
    ofstream fuel("Fuel.txt");
    {
        fuel << test << " ";
        fuel.close();
    }
the set values function takes the users input and calls a default constructor for the test object. My aim here is to somehow save the info that is being stored into this object however i am not sure how would i overload the "<<" operator when it comes to file handling. and yes the aim is to store the object so that the info is maintained once different operations and functions are proceeded etc.
 
    