Joined: 22 Oct 2004 Posts: 742 Location: London, England
Posted: Thu Oct 21, 2004 5:52 pm Post subject: Getting file.readlines() to work with carrage returns?
I'm trying to iterate over the lines in a file, but its not working as the page seems to not use newline characters but carriage returns instead. Is there anyway to make readlines() seperate into a list of strings seperated by carriage returns?