63 posts
Location
The Netherlands
Posted 25 November 2012 - 09:20 PM
Hello, my question is, how to open a disk on a advanced way.
I did like:
disk = peripheral.wrap("left")
but how to open it so you can explore it?
Rickydaan
145 posts
Location
the vast cosmos of my mind; binary!
Posted 25 November 2012 - 10:00 PM
fs.open(directory of the disk, "conditional like w, or write, and r, or read")
there you go
1548 posts
Location
That dark shadow under your bed...
Posted 25 November 2012 - 11:07 PM
um just use the normal interface, cd disk and use ls to list contents
34 posts
Location
Programming Land
Posted 26 November 2012 - 05:27 AM
You don't need to use peripheral.wrap, they already have an API for disks.
http://computercraft...itle=Disk_(API)