[2176] in java-interest
Re: gets, fgets equivalents
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Tue Sep 26 16:34:59 1995
Date: Tue, 26 Sep 1995 10:14:06 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Elliotte@blackstar.com
Cc: java-interest@java.Eng.Sun.COM
Hi Elliotte,
> Does java have any equivalent to C's gets or fgets? Or do I need to
> just read a series of bytes into an array and just convert it into a
> string? If the latter do the bytes in the standard input stream come
> in as ASCII or as Unicode? Does anyone have sample code to do this?
Try using DataInputStream, it has a readLine method.
Have fun,
Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com