• Post Reply Bookmark Topic Watch Topic
  • New Topic

EOF on System.in  RSS feed

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code below is from Ian Darwin's "Java Cookbook" page 151.
What key on Win XP do I hit to set inputLine = null ?
(carriage return is 0XD).
Thank you.

http://javacook.darwinsys.com/javasrc/io/CatStdin.java
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try ctrl-Z on Windows, some combination including ctrl-D on Mac or *nix.
 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou , cntl-Z for Windows.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!