local f = io.open("devs.txt","w") for tag,_ in pairs(manager.machine.devices) do f:write(tag.."\n") end f:close()