title: Embarcadero c++ Cannot save text to .pdf
body: <p>I am using Embarcadero c++ and I am reading text from a file. I want to save that text to a .pdf document. Any help would be appreciated! Thanks in advance... see my code below!</p>
  
  <pre><code> memText -&gt;Clear();
   AnsiString oneLine;
   AnsiString WordsFile = "ORCLE_daily_14aug12.txt";
   TStreamReader *stRead = new TStreamReader(WordsFile);
  
  while (!stRead-&gt;EndOfStream)
  {
      oneLine = stRead-&gt;ReadLine();
      memText-&gt;Lines-&gt;Add(oneLine);
  }
  stRead-&gt;Close();
  
  
  AnsiString twoLine;
  AnsiString WordsFile2 = "Daily_Report.pdf";
  TStreamWriter *stWrite = new TStreamWriter(WordsFile2, false);
  
  for (int ln = 0; ln &lt;= memText-&gt;Lines-&gt;Count-1; ln++)
  {
      oneLine = memText-&gt;Lines-&gt;Strings[ln];
      stWrite-&gt;WriteLine(oneLine);
  }
  
  memText-&gt;ScrollBars = ssVertical;
  stWrite-&gt;Close();
  </code></pre>