function main()
f=io.open("/sys/class/net/wlan0/address");
m=f:read();
f:close();
f=io.open("/mnt/sdcard/mac.txt","wb");
f:write(m);
f:close();
end
先读取后创建txt文件到sd卡目录下
借助lua实现android下mac文件生成
最新推荐文章于 2024-09-14 17:38:36 发布
function main()
f=io.open("/sys/class/net/wlan0/address");
m=f:read();
f:close();
f=io.open("/mnt/sdcard/mac.txt","wb");
f:write(m);
f:close();
end
先读取后创建txt文件到sd卡目录下