Date: Tue, 16 Feb 1999 12:46:23 -0500 Message-Id: <199902161746.MAA04793@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <36C95237.C81A112D@cbhc.ns.ca> (message from David Nugent on Tue, 16 Feb 1999 11:10:47 +0000) Subject: Re: Help with sending a file to a printer. References: <36C95237 DOT C81A112D AT cbhc DOT ns DOT ca> Reply-To: djgpp AT delorie DOT com > in=fopen("TEST.PRN","rb"); > while((c=fgetc(in))!=EOF) fputc(c,stdprn); Try adding this before that while loop: setmode(fileno(stdprn), O_BINARY); You'll need #include also.