I am trying to append a list present in a text file which is of json formate. But I'm unable to append it. can you help me out...?
p=open(r"phbook.txt","at")
l=p.readline().split(",")
output:
Traceback (most recent call last):
File "E:/pyt train/my1/phyton-training/file handelling/phone book save.py", line 2, in <module>
l=p.readline().split(",")
io.UnsupportedOperation: not readable