title: Append data columnwise in C/C++
body: <p>I want to add columns of data to a text file, one column in each iteration (one space between each column). If I open file for appending, it adds next column at the bottom of first column. Is it possible to append <em>sideways</em>? </p>
  
  <p>All data isn't available at the start. Only one column of data becomes available in each iteration, and it gets lost in the next iteration.</p>