title: writing multiple lines to a file in tcl, how to add blank line and comments
body: <p>I am writing multiple lines to a file in tcl. Although i am successful to write out, but also wanted to have a blank lines after few lines and to add comment for each line.</p>
  
  <p>Here goes my code.</p>
  
  <pre><code>set tmpdir "set_var tmpdir  $tmpdir_path"
  set vdd  "set vdd $voltage"
  set gnd "set gnd 0.0"
  set temp "set temp $temperature"
  set rundir "set topdir $topdir"
  
  
  
  
  set filename  "char_run.tcl"
  set fileId [open $filename "w"]
  puts $fileId $tmpdir
  puts $fileId $vdd
  puts $fileId $gnd
  puts $fileId $rundir
  close $fileId
  </code></pre>
  
  <p>Please suggest how to add blank lines and comment for each line.</p>