How do i read and write file

Hi take a look here you better try to save and load data into a .json instead of .txt so you can structure better