Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!kcl-cs!andrew From: andrew@kcl-cs.UUCP Newsgroups: net.micro.atari16 Subject: 'C' freopen call Message-ID: <695@neon.kcl-cs.UUCP> Date: Thu, 12-Jun-86 17:10:02 EDT Article-I.D.: neon.695 Posted: Thu Jun 12 17:10:02 1986 Date-Received: Tue, 17-Jun-86 09:06:19 EDT Reply-To: andrew@kcl-cs.UUCP () Organization: Department of Computing, Kings College, University of London. Lines: 16 Keywords: freopen I/O redirection Hi, I have just written a small program which redirects stdin to a file using the 'freopen' call. Well it works fine. But how do I get stdin back after finishing writing to the file. Normally one would write: freopen("/dev/tty","r",stdin); ^^^^^^^^ on a UNIX machine, but what is the 'filename' for stdin, stdout, stderr, on the ATARI ? Thanks in advance, Andrew Smith.