Posted 22 December 2015 - 01:14 AM
Let the code explain the question:
Did I open my file correctly? My file is 'card' in the disk directory, except it hasn't been made yet. I want to make it with this program.
h = peripheral.wrap("bottom")
print("Please enter blank data disk")
os.pullEvent("disk")
h = fs.open("disk/card","r")
h.writeLine("123") --This is where the computer says the error is
h.close()
disk.eject("bottom")
Did I open my file correctly? My file is 'card' in the disk directory, except it hasn't been made yet. I want to make it with this program.