On Sun, Aug 10, 2008 at 11:58 AM, mano M <[EMAIL PROTECTED]> wrote:
>
> 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));
Can you show the actual code you are using?
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi
[Non-text portions of this message have been removed]