Implemented a readline() function that will read an entire line into a