title: Displaying text from a file in an Inno installer with new lines
body: <p>I'm trying to embed some text read from a file into an Inno installer. Ideally this will happen in the pre-processor (ISPP) so the text cannot be modified. I am able to read the text but cannot get any newlines to display:</p>
  
  <pre><code>#define FileHandle
  #define FileLine
  #define ReadmeText ""
  
  #for {FileHandle = FileOpen("README.txt"); FileHandle &amp;&amp; !FileEof(FileHandle); FileLine = FileRead(FileHandle)} ReadmeText = ReadmeText + FileLine
  
  #if FileHandle
     #expr FileClose(FileHandle)
  #endif
  </code></pre>
  
  <p>I've attempted to insert special characters when appending each line, but none appear to work in the pre-processor (e.g. '\n', '%n', '#13').</p>
  
  <p>I'm adding the text to a <code>TMemo</code> field, currently using:</p>
  
  <pre><code>Memo.Text := '{#ReadmeText}';
  </code></pre>
  
  <p>If I could parse the file into an array of lines, it might be possible to use the <code>Memo.Lines.AddLine()</code> function, but I'm not sure if it is possible to create a variable sized array in the pre-processor and then to use it in the Pascal scripting.</p>