unity 文件操作_(txt文件按行读写)
作者:互联网
StreamWriter sw = CreateAppendTxt(writePath);
//按行写入
sw.WriteLine(lines[i] + " " + dic[list_4[i]] + "_分块4");
sw.Close();
//按行读取txt
string[] lines = File.ReadAllLines(readPath, System.Text.Encoding.Default);
原文链接:https://blog.csdn.net/qq_41877039/article/details/91303620
标签:文件,sw,lines,System,unity,按行,txt 来源: https://blog.csdn.net/weixin_45023328/article/details/118599592