title: Write a circular file in c++
body: <p>I need to write a circular file in c++. The program has to write lines in a file and when the code reaches a maximum number of lines, it must overwrite the lines in the beginning of the file.</p>
  
  <p>Anyone have any idea?</p>