//从绝对路径加载TBL public void LoadFromFileabAolutePath(string strFileName) { FileStream fs = new FileStream(strFileName, FileMode.Open); if (fs == null) { FDebug.LogWarning("ServerConfig.config read failed"); return; } byte[] pByte = new byte[fs.Length]; fs.Read(pByte, 0, pByte.Length); fs.Close(); //内容解密 string szContent = Encoding.Unicode.GetString(pByte); LoadFromFileContent(szContent); }