Try this
import pickle
tilemap = pickle.load(open('data/tilemap2.txt', 'rb'))
print (tilemap)
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
Crash python course:
AttributeError: 'str' object has no attribute 'readline'
.... hmmm readline ? ding dong! ==> python was expecting a file.
It found a string ahah! I forgot to open a file :)
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691