Date: Sun, 6 Jun 1999 13:28:25 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: taupin cc: DJGPP List Subject: Re: Sending commands to lpt1, lpt2, etc. In-Reply-To: <375A3065.4880DA40@lps.u-psud.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 6 Jun 1999, taupin wrote: > Which FILE should I open (unless implicitly opened) to be able to send > codes to printers LPT1: LPT2: PRN For the default printer, simply use the provided stream stdprn, it is already open when the program starts. Note that it is open in binary mode, so e.g. \n is NOT converted into \r\n by default. For non-default printers, open "LPT1" and "LPT2" (without a colon!) and then use them as if they were files.