Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- clear()
- print(" eRGB")
- print("")
- print("Creazione bolletta elettronica")
- print("")
- print("Inserire cod.cliente")
- local UICnumber = read()
- print("")
- local phpdate = http.get("http://172.16.20.218/date.php")
- local date = phpdate.readAll()
- phpdate.close()
- print("La data di oggi e'"..date.." ")
- print("Premere ENTER per accettare, C per correggere")
- local keys = read()
- if keys == "c" then
- print("")
- print("Correggere la data:")
- date = read()
- end
- print("")
- print("Inserire totale")
- local totale = read()
- print("Inserire segno")
- local segno = read()
- local be = {}
- be.UICnumber = UICnumber
- be.date = date
- be.totale = totale
- be.segno = segno
- bedisco = textutils.serialize(be)
- clear()
- print("Inserire disco")
- os.pullEvent("disk")
- disk.setLabel("bottom", "DBE")
- local handle = assert(fs.open("disk/be", "w"), "TOC ERROR")
- handle.write(bedisco)
- handle.close()
- clear()
- print("Ritirare il disco")
- disk.eject("bottom")
- sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment