1.存儲字符串到指定路徑文件中:
//第1個參數 :存儲的路徑
//第2個參數 :存儲的字符串內容
File.WriteAllText(Application.persistentDataPath+"/Test.json","哈哈哈哈哈哈哈哈");
print(Application.persistentDataPath);
2.在指定路徑文件中讀取字符串
//參數:讀取的路徑
string str = File.ReadAllText(Application.persistentDataPath + "/Test.json");
print(str);
