Tuesday, March 1, 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:

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

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

CloseFile( f );
end;

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

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