I am working with SQLite in C++ on Linux. I want to replicate the SQLite database in another machine. I want to read the SQLite database file using fstream
and create a copy in the other machine.
My code :
ifstream _fstream;
_fstream.open("Sourcefile",ios::in);
ofstream _ostream;
_ostream.open("ReplicatedFile",ios::out);
_ostream << _fstream;
_ostream.close();
_fstream.close();