Hi I want to insert new info at a specific line in a file. But I want to also delete the previous info on that line. However I've only been able to put in the new info not overwrite the previous. How can I easily accomplish this?
#include <iostream> // for std::cout
using namespace std;
int i =0;
dataflow.open("print.txt", ios::in | ios::out);
dataflow << i << std::endl;
dataflow << value;
cout << value << endl;