Date: Mon, 12 May 1997 13:09:59 -0400 (EDT) From: "Art S. Kagel" To: Phuah Yee Keat Cc: djgpp AT delorie DOT com Subject: Re: Printing (IBM) In-Reply-To: <337419d3.2151757@news.jaring.my> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sat, 10 May 1997, Phuah Yee Keat wrote: > Hi, > How to print something unformatted to the printer, just simple text, > using DJGPP, is there any classes or libraries that I can use? > Thanx in advance > Phuah > Just open file "LPT1" or "PRN" in binary mode and write to it: PRINTER=fopen("LPT1", "wb" ); fwrite( ... ); Art S. Kagel, kagel AT bloomberg DOT com