Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site decwrl.DEC.COM Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!dec-rhea!dec-kirk!williams From: williams@kirk.DEC (John Williams 223-3402) Newsgroups: net.lang.c Subject: Redirection Message-ID: <1403@decwrl.DEC.COM> Date: Thu, 27-Feb-86 09:17:25 EST Article-I.D.: decwrl.1403 Posted: Thu Feb 27 09:17:25 1986 Date-Received: Sat, 1-Mar-86 04:09:29 EST Sender: daemon@decwrl.DEC.COM Organization: Digital Equipment Corporation Lines: 27 For example, VMS has neither redirection nor pipelining. All this means is that you have to open a file. #include FILE *infile,*outfile; infile = fopen("file.in","r"); outfile = fopen("file.out","w"); . . . You can now use any stdio function by putting a f in front and adding the file pointer as the first argument. . . . fclose(infile); fclose(outfile); Sure, those *features* are missed a little bit, but I certainly wouldn't call VMS half-assed. I simply takes a little more to get around that *particular* problem. As a matter of fact, most VMS tools don't bother with stdio at all, they use default filename extentions. John Williams