[152] in java-interest

home help back first fref pref prev next nref lref last post

Re: System.out/in

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Tue May 30 12:42:53 1995

Date: Tue, 30 May 1995 09:23:06 -0700
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: java-interest@java.Eng.Sun.COM

Hi Peppar,

> > 	InputStream in = new FileInputStream(0);
> > 
> > Don't use System.in at the same time as this new InputStream!
> > 
> 
> So it it really necessary to use '0'. Shouldn't there be some kind of 
> alias-name for this, say stdin? (Does the UNIX-concept of stdin/stdout/stderr 
> exist on Macs and Windows?? What I mean, does the code-line above work on a 
> other than UNIX-plattforms?) 

There should be a constant define somewhere but there isn't. It is guaranteed
to work on all platforms though...

Have fun,

	Arthur van Hoff (avh@eng.sun.com)
	http://java.sun.com/people/avh/
	Sun Microsystems Inc, M/S UPAL02-301,
	100 Hamilton Avenue, Palo Alto CA 94301, USA
	Tel: +1 415 473 7242, Fax: +1 415 473 7104

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post