Posted 26 October 2012 - 12:10 AM
okay, So i'm trying to get a program to copy a file from a disk and paste it on the rom
Only difference is, I copy it 50 times.
i have 2 integers,
I then make a string of the file copy destination
the file is then copied to the rom
I get the response error of startup:41: Expected string, string
(sometimes when playing around with the code I get a "got string, nil" response)
Entirely the code is
Only difference is, I copy it 50 times.
i have 2 integers,
numLoop = 1
numStop = 50
I then make a string of the file copy destination
stringTempFile = "tempfile"..tostring(numLoop)..
the file is then copied to the rom
fs.copy("/disk/file", stringTempFile)
I get the response error of startup:41: Expected string, string
(sometimes when playing around with the code I get a "got string, nil" response)
Entirely the code is
numLoop = 1
numStop = 50
repeat
--stringLoop = tostring(numLoop
stringTempFile = "tempfile"..tostring(numloop)
fs.copy("/disk/file", stringTempFile)
print("Coping File "..numLoop" of "..numStop..)
numLoop = numLoop + 1
sleep(0.3)
until numLoop == numStop