title: Writing to a file using echo
body: <pre><code>void EDataset::PrintErr(const NDataString&amp; ErrMsg){       
     system("echo " + $ErrMsg + "  &gt;&gt; err.txt");
     .... code ....
  }
  </code></pre>
  
  <p>It prints blank line as the value of ErrMsg. How come?</p>