55 posts
Location
Brazil
Posted 01 January 2014 - 02:48 PM
I doing a backup program but when you put the name of the file this error appears:
backup:6: attempt to perform arithmetic __div on table and stringCode of program:
print ("File backup Creator")
print ("Enter the name of the file.")
write("File: ")
program = read()
fs.copy("program", disk/"program")
208 posts
Posted 01 January 2014 - 02:51 PM
I doing a backup program but when you put the name of the file this error appears:
backup:6: attempt to perform arithmetic __div on table and stringCode of program:
print ("File backup Creator")
print ("Enter the name of the file.")
write("File: ")
program = read()
fs.copy("program", disk/"program")
Last line should be this:fs.copy(program,"disk/"..program)
55 posts
Location
Brazil
Posted 01 January 2014 - 03:13 PM
I doing a backup program but when you put the name of the file this error appears: backup:6: attempt to perform arithmetic __div on table and string
Code of program:
print ("File backup Creator")
print ("Enter the name of the file.")
write("File: ")
program = read()
fs.copy("program", disk/"program")
Last line should be this:fs.copy(program,"disk/"..program)
Thanks. probably i will add you in Special Thanks.