title: How can I write the same line into several files in VHDL
body: <p>I actually want to write one and the same line to two different textfiles in VHDL.</p>
  
  <p>First i naively tried just to write into two files this way:<br>
  <code>write (v_lineBuffer, v_string);</code><br>
  <code>writeline(f_output1, v_lineBuffer);</code><br>
  <code>writeline(f_output2, v_lineBuffer);</code></p>
  
  <p>until i realized that <em>v_lineBuffer</em> is flushed after <em>writeline()</em>.</p>
  
  <p>I also tried to just copy the line:<br>
  <code>write(v_lineBuffer1, v_string);</code><br>
  <code>v_lineBuffer2 := v_lineBuffer1;</code><br>
  <code>writeline(f_output1, v_lineBuffer1);</code><br>
  <code>writeline(f_output2, v_lineBuffer2);</code></p>
  
  <p>but ModelSim just crashes at my attempt to copy <em>v_lineBuffer1</em> to <em>v_lineBuffer2</em></p>
  
  <p>Can anyone help? Thanks!</p>