Jump to content




[QUESTION] How to open a disk on a advanced way


3 replies to this topic

#1 rickydaan

  • Members
  • 93 posts
  • LocationThe 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

#2 cmurtheepic

  • Members
  • 158 posts
  • Locationthe 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

#3 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat 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

#4 Laserman34170

  • New Members
  • 34 posts
  • LocationProgramming 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)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users