读取txt地图文件
2020-05-21 本文已影响0人
蜥蜴君
string path = Application.dataPath + "//" + "Resources" + "//" + "map.txt";
if (!File.Exists(path))
{
return;
}
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReaderread=newStreamReader(fs,Encoding.Default);