Posted 07 January 2013 - 05:54 AM
Hello Pros, I am in the very, very, very early stages of learning Lua in ComputerCraft. I am trying to make a program that copies a program from the rom folder to a disk. I have prepared only around 7 lines of code, and am having trouble with defining a variable for the disk folder.
I might have explained it wrong but I hope you understand! (And please don't hassle me because I'm very new to this stuff…)
I might have explained it wrong but I hope you understand! (And please don't hassle me because I'm very new to this stuff…)
term.clear()
term.setCursorPos(1,1)
write("What's the program you want to copy?")
name = io.read()
disk = fs.isDir("disk")
fs.copy(" name, disk " )