r/ComputerCraft • u/DrawerAcceptable3038 • Dec 06 '24
how do I read data from a floppy disk?
I have been trying to make an floppy disk that can store and load information and I want to get data from the floppy disk to a variable on one of the computer's scripts but I cant find a way to do it.
1
Upvotes
2
u/HoraneRave Dec 07 '24
https://tweaked.cc/module/fs.html "mounts" part, "copy" method, i guess
1
u/fatboychummy Dec 07 '24
Floppies are mounted to
/disk(if you have multiple, then it becomes/disk2,/disk3, ...)So you just
fs.openthe file on the disk like any other file.