I
Igor R.
What's the laconic and standard way to do the subj - without an
explicit loop of [allocate-read-write]? In case of text files, I'd do
something like:
ifstream in("file1.txt", ios::in);
ofstream out("file2.txt", ios:
ut | ios::ate);
out << in.rdbuf();
But in case of binary files, I guess "<<" would do some undesired
formatting.
explicit loop of [allocate-read-write]? In case of text files, I'd do
something like:
ifstream in("file1.txt", ios::in);
ofstream out("file2.txt", ios:
out << in.rdbuf();
But in case of binary files, I guess "<<" would do some undesired
formatting.