From: Kenneth DOT Suter AT INNOSOFT DOT COM (Kenneth Suter) Subject: B19: Java readLine not blocking 28 Jun 1998 14:20:26 -0700 Message-ID: <359659E9.E427B726.cygnus.gnu-win32@innosoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com 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".