Do anyone knows how to copy file without using system call(system()).
I was trying with std::copy(given below), But it doesn't work out(not copying 
"\n")
 
ifstream in("file.txt");
ofstream out("Newfile.txt");

std::copy(std::istream_iterator<unsigned 
char>(in),std::istream_iterator<unsigned char>(),
std:ostream_iterator<unsigned char>(out));
 
Thanks,
Manoj




      

[Non-text portions of this message have been removed]

Reply via email to