title: Delphi Tstringlist, write file synch
body: <p>I make a very simple log with tstringlist. I write it to file:</p>
  
  <pre><code>pLog.SaveToFile(FileName);
  </code></pre>
  
  <p>Somewhere there is a bug, and my computer is shut-down.
  After, I cannot find my log file. Probably the file is saved in asych mode.
  There is a way for waiting for the write before to go on with the execution?</p>
  
  <p>Thanks,
  Alberto</p>