I made a program that stores some data into a file with Pickle
Here is what the file looks like:
ÄX
(7836)q.ÄX
(13289)q.ÄX
(0928)q.ÄX
(26)q.ÄX
(7893)q.ÄX
(3883)q.ÄX
(1982)q.ÄX
what it is is not important
but when I try to read it with:
data = pickle.load(open("num.txt", "rb"))
print(data)
this is the output:
(7836)
while the expected result is:
(7836)
(13289)
(0928)
(26)
(7893)
(3883)
(1982)
How do I fix this?