title: Write data to file in columns (Fortran)
body: <p>I need to write some data to file in Fortran 90. How should I use <code>WRITE (*,*) input</code> to have the values grouped in <strong>columns</strong>? <code>WRITE</code> always puts a <code>new line</code> after each call, that's the problem.</p>
  
  <p>code example:</p>
  
  <pre><code>open (unit = 4, file = 'generated_trajectories1.dat', form='formatted')
  
  do time_nr=0, N
     write (4,*) dble(time_nr)*dt, initial_traj(time_nr)
  end do
  </code></pre>
  
  <p>And now the point is to have it written in separate columns.</p>