Posted 15 October 2012 - 07:43 PM
Hello, I'm having a little bit of trouble with a program of mine. It says that I have a nil value at line 11 (marked line). I can't quite figure out the problem with it, as it works when I have the path (in line 10) at "disk/install", but not "disk/install/key". Any help would be appreciated, thank you.
key = math.random(1000,9999).."-"..math.random(1000,9999)
keyfile = fs.open("disk/install/key", "w")
keyfile.write(pdkey) --This line, but I believe it has to do with the line above it.
keyfile.close()
installPrograms()