How to read a file without newlines?
In Python, calling
In Python, calling
I have a problem to parse 1000’s of text files(around 3000 lines in each file of ~400KB size ) in a folder. I did read them using readlines,
Essentially I want to suck a line of text from a file, assign the characters to a list, and create a list of all the separate characters in a list — a list of lists. At the moment, I’ve tried this: fO = open(filename, 'rU') fL = fO.readlines() That’s all I’ve got. I don’t quite … Read more