Wednesday, March 2, 2011

How to print in a hurry

If you want to print text in a hurry without fancy formatting or setting up, try something like:

  f : TextFile;
  AssignFile( f, 'LPT1' );
  Rewrite( f );

  // do your printing here...
  WriteLn( f, 'hello, world!');

  CloseFile( f );

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Kang Iwan K-sev | Thank's for your visit To My Site - Ridwan Mulyana | Cibeureum