StreamReader读取文本文件.md 292 B

#unity/代码缓存

private string webBackupPathFileUrl = "C:/PLink_Web_Backups/XPackageConfig_Main.txt";
public static string webTxt = String.Empty;
StreamReader sr = new StreamReader(webBackupPathFileUrl, Encoding.UTF8);  
webTxt = sr.ReadToEnd();  
sr.Close();  
sr.Dispose();