title: Inno Setup SaveStringToFile
body: <p>I want to write in a text file at the end of compiling, NOT at the end or while the installation.</p>
  
  <p>This is my code:</p>
  
  <pre><code>[Code]
  procedure example();
  begin
    SaveStringToFile('i:\Installer\Inno_Files\inno_log.txt', #13#10 + 'it works' + #13#10, True);
  end;
  </code></pre>
  
  <p>However, this doesn't work for me. Also I dont know if its possible to do this.
  Does somebody of you know how to solve this problem or can tell me if its even possible ?</p>
  
  <p>Please excuse my bad english. ;)</p>
  
  <p>Greetings</p>
  
  <p>EDIT: Also I tried this, but it doesnt work:</p>
  
  <pre><code>function logfile(): String;
  begin
    SaveStringToFile('i:\Installer\Inno_Files\inno_log.txt', #13#10 + 'the string' + #13#10, True);
  end;
  </code></pre>