public string GetPrivateProfileStringstring lpAppName string lpKeyName string lpDefault string lpFileName string path = PathGetFullPathlpFileName; if !FileExistspath
这可能是因为文件编码不是系统默认编码造成的。可以尝试在创建 StreamReader 对象时指定编码,例如:
using (StreamReader sr = new StreamReader(path, Encoding.UTF8))
原文地址: https://www.cveoy.top/t/topic/Z25 著作权归作者所有。请勿转载和采集!