Extracting trait for reading in lines in the Input class.

This is required for use with the Console.readLine method.