what i found:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
ifstream myfile_in ("Lista1.txt");
Type: Posts; User: hmoleman
what i found:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
ifstream myfile_in ("Lista1.txt");
I "just" need the method:
void edit(){
open file.txt
find and replace string
save file.txt
}
thanks Salem, will try to put this to work.
Hi all, i want to edit a txt file, look the content:
name:john
fone:4454
to
name:john
fone:8888