[Tutor] File Compare

Danny Yoo dyoo at hashcollision.org
Fri Jan 9 06:54:12 CET 2015


> old_file = open('0105-up.txt','r')
> file_contentsA = old_file.read()
> A = file_contentsA.split(",")
> print(A)
> print()


Ah.  One other thing.  Can you explain what you're intending to do
with this statement?

   A = file_contentsA.split(',')

The reason I ask is because neither of your input files that you've
shown us has a single comma in it, so I do not understand what the
intent is.


More information about the Tutor mailing list