利用File读取后得到txt文本内容,需要引用IO接口
string STR= File.ReadAllText(Application.streamingAssetsPath+ "/Test.txt");
利用File 写入修改后的文件 (STR修改后的数据)
File.WriteAllText(Application.streamingAssetsPath + "/Test.txt", STR);
利用File读取后得到txt文本内容,需要引用IO接口
string STR= File.ReadAllText(Application.streamingAssetsPath+ "/Test.txt");
利用File 写入修改后的文件 (STR修改后的数据)
File.WriteAllText(Application.streamingAssetsPath + "/Test.txt", STR);