Advertisement
Guest User

Untitled

a guest
Mar 12th, 2014
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local component = require("component")
  2. local tape = component.tape_drive
  3.  
  4.  
  5. local file = io.open("/mnt/230/audio", "rb")
  6. local block = 1024
  7. while true do
  8.     local bytes = file:read(block)
  9.     if not bytes then break end
  10.     tape.write(bytes)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement