Kitomas

eepromw

Mar 24th, 2021 (edited)
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local eeprom,res,args=require("component").eeprom,require("shell").resolve,{...}
  2. if #args >= 1 then
  3.   local file=io.open(res(args[1]),'r')
  4.   if #args >= 2 then eeprom.setLabel(args[2]) end
  5.   eeprom.set(file:read("*all"))
  6. else print("input at least 1 file argument") end
Add Comment
Please, Sign In to add comment