title: Rewinding std::cout to go back to the beginning of a line
body: <p>I'm writing a command-line tool for Mac OS X that processes a bunch of files. I would like to show the user the current file being processed, but do not want a bazillion files polluting the terminal window.</p>
  
  <p>Instead I would like to use a single line to output the file path, then reuse that line for the next file. Is there a character (or some other code) to output to <code>std::cout</code> to accomplish this? </p>
  
  <p>Also, if I wanted to re-target this tool for Windows, would the solution be the same for both platforms?</p>