obsidian/笔记文件/2.笔记/StreamReader读取文本文件.md
2025-03-26 00:02:56 +08:00

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();