IOHandler: use print method for output in readLine input method instead of copied code