Mail Archives: cygwin/1998/06/28/14:20:26
Java readLine from BufferedReader does not block for input, at least
under NT 4.0 and Beta 19. It does however work in the DOS shell.
Here is a sample:
import java.io.*;
class x {
public static void main(String[] args) {
BufferedReader in = new BufferedReader ( new
InputStreamReader(System.in) );
try {
System.out.println("Enter some text:");
String s = in.readLine();
System.out.println("executed readLine()");
System.out.println(s);
}
catch (IOException e) { System.out.println(e); }
}
}
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -