Poo Particle Pete
2013-06-08 04:40:38 UTC
say i have a file like this;
hello
1
2
goodbye
how could I delete hello? and how could i replace 2 with another int or string?
#include
using namesapce std;
int main()
{
fstream outfile;
outfile.open("file.txt", ios::out| ios::app);
return 0;
}
i'm not sure where to go or how to do it, my text book only helped me thus far.
If you could help me it would be appreciated =)