var f : TextFile; begin AssignFile( f, 'LPT1' ); Rewrite( f ); // // do your printing here... // WriteLn( f, 'hello, world!'); CloseFile( f ); end;