I have generated some data and stored it many times like this:
with open('filename', 'a') as f:
pickle.dump(data, f)
Every time the size of the file increased, but when I open the file
with open('filename', 'rb') as f:
x = pickle.load(f)
I can see only information from the last time. How can I correctly read the file?