View difference between Paste ID: tDB4G5Mu and fizx30HA
SHOW: | | - or go back to the newest paste.
1-
m = peripheral.wrap("top")
1+
mon = peripheral.wrap("top")
2
h = fs.open("/data","r")
3
nr = h.readLine()
4
name = h.readLine()
5
x,y = mon.getSize()
6
x= x/2-3
7
mon.setCursorPos(x,1)
8
mon.write("NR. "..nr)
9
mon.setCursorPos(1,3)
10
mon.write(name)