5 posts
Posted 12 July 2012 - 11:37 PM
Hey there. I was wondering how do I save programs to a Floppy Disk?
I've tried a lot of things and I've searched Google and the wiki. (Also how do I Save stuff from a Floppy Disk to a Computer/Turtle?
504 posts
Location
Seattle, WA
Posted 12 July 2012 - 11:40 PM
To save a file to a floppy disk you have a couple options:
- You could just run 'edit disk/filename' and write your code that way
- You could run 'copy filename disk/filename'
- You could run 'move filename disk/filename'
As for moving from a disk to a computer you could do the same things but mixing up the directories:
- You could run 'copy disk/filename filename'
- You could run 'move disk/filename filename'
And for the turtle I believe that you could do the same things as the first list I suggested.
Hope I helped! :)/>/>
5 posts
Posted 12 July 2012 - 11:42 PM
To save a file to a floppy disk you have a couple options:
- You could just run 'edit disk/filename' and write your code that way
- You could run 'copy filename disk/filename'
- You could run 'move filename disk/filename'
As for moving from a disk to a computer you could do the same things but mixing up the directories:
- You could run 'copy disk/filename filename'
- You could run 'move disk/filename filename'
And for the turtle I believe that you could do the same things as the first list I suggested.
Hope I helped! :)/>/>
Perfect. 1+'d your post. Thanks.
16 posts
Posted 15 August 2013 - 08:23 AM
How do you get the name of the disc?
1852 posts
Location
Sweden
Posted 15 August 2013 - 05:52 PM
If you'd want to quickly backup all your programs onto a disk then you could do this
for _, file in ipairs(fs.list("/")) do -- Gets the files in the default folder
fs.copy(file,"disk/"..file) --Copies the files
end
16 posts
Posted 16 August 2013 - 07:53 AM
never mind what I said earlier, I've got the hang of it now! P.S. Turtles and Herobrine do not mix!