
16 Jun
2012
16 Jun
'12
2:10 p.m.
On 16 June 2012 20:03, Robert Heumüller
The program compiles and runs without any problems. But there is absolutely no output, when f.eg. i type "hello, world" and hit return. Why would that be?
getContents reads the entire input to the program. Under Linux you can terminate input with Ctrl-D. If you want to only read a single line, use getLine.