Revert "Read lines from the input stream"

This reverts commit 317d760216ba75d230892681d458ffb0345c8237.