Just use the Java class library. I think this will work:
var stdin = java.lang.System.in; var line = stdin.readLine();
At this point, it's easy to convert a string to whatever type you like, or break it into pieces using RegExp.
This may distort Unicode input, but I'm not sure if this is good, cross-platform.
Jason orendorff
source share