Advertisement
Kitomas

eepromw

Mar 23rd, 2021
952
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(re(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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement