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);
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);
本文标题:读取txt地图文件
本文链接:https://www.haomeiwen.com/subject/tpzzohtx.html
网友评论