Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!necntc!ima!johnl
From: johnl@ima.ISC.COM (John R. Levine)
Newsgroups: comp.sys.ibm.pc
Subject: Re: C write() operations to MS-DOS devices?
Message-ID: <1041@ima.ISC.COM>
Date: 2 Jun 88 01:40:51 GMT
Article-I.D.: ima.1041
References: <1318@tahoe.unr.edu> <875@dsacg3.UUCP>
Reply-To: johnl@ima.UUCP (John R. Levine)
Organization: Not much
Lines: 12

In article <875@dsacg3.UUCP> nts0302@dsacg3.UUCP (Bob Fisher) writes:
>In article <1318@tahoe.unr.edu>, malc@tahoe.unr.edu (Malcolm L. Carlock) writes:
>> How can I do a C write() operation to MS-DOS device PRN, AUX, etc. ?
>Try using the pathnames ":PRN", ":CON" and ":AUX" when you open the file.

Close but no cigar.  You need to use filenames like PRN, AUX, and CON with
no colons at all.  Be warned that you can use any extension, so if you
try to use a file with a name like con.c, you'll get surprising results.
-- 
John R. Levine, IECC, PO Box 349, Cambridge MA 02238-0349, +1 617 492 3869
{ ihnp4 | decvax | cbosgd | harvard | yale }!ima!johnl, Levine@YALE.something
Rome fell, Babylon fell, Scarsdale will have its turn.  -G. B. Shaw