Implemented readLine method for IODevice.