*--*  11/25/92  -  16:27:39  *--*




[38/39]
From   : Hacker
To: Viper 
Subject: Re: TP6.0
Date   : 21 Nov 92  10:22:34
Thread : 37 <--> 39

V> Uses 
V>   printer;
V> 
V> Ver
V>   Lst : text;
V> 
V> writeln (Lst,'filename');
V> 
V> will print a text file to LPT 1 but how would I send something in the progr
No, that won't that will write the TEXT 'FILENAME' to the printer, here
is an example;

program test;
var
  f:text;
begin
[WAITING]            assign(f,'LPT1'); {Assign the textfile variable to 'LPT1'}
   reset(F);         {Reset the printer}
   writeln(F,'This is a test'); {output 'This is a te to the printer}
   close(F);         {Close the variable assigned to the printer}
end.

V> How would I send that to the printer?
Use that example, just stick whatever you want to print inbetween t he
Assign,reset, and the close. 

                                                      Hacker

--- Renegade v8-27 Beta
 * Origin: The Programmer's Coalition v.32bis (416)648-9951 (223:500/102)

[Pascal SIG #32]
[38/39] Reading Messages: 