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