title: Format output string, right alignment
body: <p>I am processing a text file containing coordinates x, y, z</p>
  
  <pre><code>     1      128  1298039
  123388        0        2
  ....
  </code></pre>
  
  <p>every line is delimited into 3 items using</p>
  
  <pre><code>words = line.split()
  </code></pre>
  
  <p>After processing data I need to write coordinates back in another txt file so as items in each column are aligned right (as well as the input file). Every line is composed of the coordinates</p>
  
  <pre><code>line_new = words[0]  + '  ' + words[1]  + '  ' words[2].
  </code></pre>
  
  <p>Is there any manipulator like <code>std::setw()</code> etc. in C++ allowing to set the width and alignment?</p>