add {$apptype console} to testreadtxt2.dpr to make delphi build it as a console app