Amin235
0
Q:

read pickle file

with open('filename', 'rb') as f:
    x = pickle.load(f)
1
with open('filename', 'a') as f:
        pickle.dump(data, f)
0
objects = []
with (open("myfile", "rb")) as openfile:
    while True:
        try:
            objects.append(pickle.load(openfile))
        except EOFError:
            break
-1

New to Communities?

Join the community