Cyjanekpotasu

findperipherals

Feb 23rd, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. local methods = peripheral.getMethods( "top" )
  2. local file = fs.open( "output", "w" ) --#opens a file named 'output' in write mode
  3. for k, v in pairs( methods ) do
  4. file.writeLine( v ) --#writes the method to a new line
  5. end
  6. file.close() --#closes the file (important!)
Add Comment
Please, Sign In to add comment