From: =?ISO-8859-1?Q?Rafael_Garc=EDa?= Newsgroups: comp.os.msdos.djgpp Subject: Re: How to open LPT1: as file? Date: Mon, 17 Feb 2003 09:47:23 +0100 Organization: Telefonica Data Espagna Lines: 11 Message-ID: <3E50A19B.8030906@geninfor.com> References: <3E509273 DOT 2040107 AT fom DOT fgan DOT de> NNTP-Posting-Host: 80-24-251-44.uc.nombres.ttd.es Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nsnmrro2-gest.nuria.telefonica-data.net 1045471651 9154 80.24.251.44 (17 Feb 2003 08:47:31 GMT) X-Complaints-To: usenet AT nsnmrro2-gest DOT nuria DOT telefonica-data DOT net NNTP-Posting-Date: Mon, 17 Feb 2003 08:47:31 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020826 X-Accept-Language: en-us, en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Wolfgang v. Hansen wrote: > I tried to fopen("LPT1:", "w") but that didn't succeed. I ever use printers this way and it works perfectly. Please tell us more about your configuration. If you have Win XP use "a" instead of "w" In some configurations you must use "prn" or "lpt1". Copy here a little whole program that shows the problem