You could try this for some help: Persistence: Saving and Loading Data - Unity Learn
There’s another Utility built into Unity called JsonUtility. You can search for information on that - it’s pretty straightforward.
Hope that helps.
PS. If you’re looking to post code on the forums, read this page: Using code tags properly
People generally don’t want to have to download a file to discuss some code in a question/post