Previous: 4.60. PenWin - Pen Windows Interface Unit To the Table of Contents Next: 4.62. RegStr - Registry interface unit
4.60. PenWin - Pen Windows Interface Unit Table of Contents 4.62. RegStr - Registry interface unit

- 4.61. -
Table of Contents
4. Standard Units
4.61. Printer - Printer Support unit


4.61. Printer - Printer Support unit

Targets: MS-DOS, OS/2, Win32


The Printer unit declares a text file called Lst and associates it with the LPT1 device.
var Lst : Text;
When you use the Printer unit, you don't need to declare, assign, open, and close a text file yourself when you use your printer from within a program.

Example:
uses Printer;
begin
  WriteLn(Lst, 'Your printer works properly!');
end.







Previous: 4.60. PenWin - Pen Windows Interface Unit To the Table of Contents Next: 4.62. RegStr - Registry interface unit
4.60. PenWin - Pen Windows Interface Unit Table of Contents 4.62. RegStr - Registry interface unit

- 4.61. -