how to create a duplicate of a file using c++
<p>I need to duplicate a file that I generate using "ofstream". I wanted to know if there is any way without having to do it manually (creating another stream, reading the one I want to copy and writing what it was read)
I search for this question in google, but all I could find was something that work in Windows, and I am working with linux</p>

<p>I am kind of new to c++ :) </p>
