Changed ReadLine to readToEnd