Whenever I read text from a file, Python prints extra newlines and spaces. This has been happening for months and I\'ve found no way of fixing it.
Code