|
@@ -166,6 +166,10 @@ return aaa";
|
|
|
{
|
|
{
|
|
|
MergeLanauage("Assets/Content/Config/LanguagePackage_cn.csv", "Build/NewCfg/ROLanguagePackage_cn.csv", "Build/NewCfg/Language_merge.csv");
|
|
MergeLanauage("Assets/Content/Config/LanguagePackage_cn.csv", "Build/NewCfg/ROLanguagePackage_cn.csv", "Build/NewCfg/Language_merge.csv");
|
|
|
}
|
|
}
|
|
|
|
|
+ if (GUILayout.Button("二进制转换"))
|
|
|
|
|
+ {
|
|
|
|
|
+ B2T("D:/项目/其他/Language15000-19000.csv", "D:/项目/其他/111.csv",Encoding.UTF8);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static string GetFilePath()
|
|
public static string GetFilePath()
|
|
@@ -777,4 +781,14 @@ return aaa";
|
|
|
FileHelper.WirteStringToFile(outputPath, data);
|
|
FileHelper.WirteStringToFile(outputPath, data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ private void B2T(string bPath,string outPath, Encoding read)
|
|
|
|
|
+ {
|
|
|
|
|
+ using (FileStream binaryFileStream = new FileStream(bPath, FileMode.Open, FileAccess.Read))
|
|
|
|
|
+ using (StreamReader reader = new StreamReader(binaryFileStream, read)) // 使用ASCII编码读取
|
|
|
|
|
+ using (StreamWriter writer = new StreamWriter(outPath))
|
|
|
|
|
+ {
|
|
|
|
|
+ writer.Write(reader.ReadToEnd()); // 读取并写入文本文件
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|