1 Star 0 Fork 5

看这场人来人往/PathOfBuildingCN17173

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hashTest.lua 749 Bytes
一键复制 编辑 原始数据 按行查看 历史
lucifering 提交于 2018-07-18 00:44 . [MOD]
local sha1 = require("lua/sha1")
local fileW = io.open("lua_MD5xml.txt", "w+b")
local path="./"
for line in io.lines("luafiles.txt") do
local fileR = io.open(path..line, "rb")
print(line)
local content = fileR:read("*a")
fileR:close()
fileW:write("<File sha1=\""..sha1(content).."\" name=\""..line.."\" part=\"program\"/>\r\n")
fileW:flush()
end
fileW:close()
fileW = io.open("lua_MD5xml2.txt", "w+b")
for line in io.lines("luafiles2.txt") do
local fileR = io.open(path..line, "rb")
print(line)
local content = fileR:read("*a")
fileR:close()
fileW:write("<File sha1=\""..sha1(content).."\" name=\""..line.."\" part=\"runtime\"/>\r\n")
fileW:flush()
end
fileW:close()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hunterXX/PathOfBuildingCN17173.git
git@gitee.com:hunterXX/PathOfBuildingCN17173.git
hunterXX
PathOfBuildingCN17173
PathOfBuildingCN17173
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385