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

posted @ 2022-06-22 18:05  哒哒哒~~~  阅读(322)  评论(0编辑  收藏  举报