[2497] in java-interest
EOF
daemon@ATHENA.MIT.EDU (Elliotte Rusty Harold)
Tue Oct 3 17:02:29 1995
From: "Elliotte Rusty Harold" <Elliotte@blackstar.com>
To: java-interest@java.sun.com
Date: Tue, 3 Oct 1995 14:05:03 EST
Reply-To: Elliotte@blackstar.com
Does java have any equivalent to C's EOF? i.e. in C it's quite
common to do something like
while (fgets != EOF) {
What I'd like to do in java is
DataInputStream theCharacters = new DataInputStream(System.in);
while ((thisChar = theCharacters.readChar()) != EOF) {
However although the term "EOF" shows up occasionally in the java
docs it's not precisely defined.
--
Elliotte Rusty Harold Black Star Publishing Co., Inc.
elliotte@blackstar.com 116 East 27th Street
elharo@escape.com NY NY 10016
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com