title: How to easily indent output to ofstream?
body: <p>Is there an easy way to indent the output going to an ofstream object?  I have a C++ character array that is null terminate and includes newlines.  I'd like to output this to the stream but indent each line with two spaces.  Is there an easy way to do this with the stream manipulators like you can change the base for integer output with special directives to the stream or do I have to manually process the array and insert the extra spaces manually at each line break detected?</p>
  
  <p>Seems like the string::right() manipulator is close:</p>
  
  <p><a href="http://www.cplusplus.com/reference/iostream/manipulators/right/" rel="noreferrer">http://www.cplusplus.com/reference/iostream/manipulators/right/</a></p>
  
  <p>Thanks.</p>
  
  <p>-William</p>