Posted 10 October 2014 - 08:00 PM
Hi,
I would like to make a program which reads a file and shows his content on a monitor.
But my problem is, when i read the file with:
the whole text of the file is written in the first line on the monitor.
Thanks for your support. PS: Sorry for my english … I'm a german :D/>
I would like to make a program which reads a file and shows his content on a monitor.
But my problem is, when i read the file with:
mon = peripheral.wrap("right")
mon.setCursorPos(1,1)
file = fs.open("file","r")
x = file.readLine()
file.close()
mon.write(x)
the whole text of the file is written in the first line on the monitor.
Thanks for your support. PS: Sorry for my english … I'm a german :D/>