Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- local h
- local file = tArgs[1]
- local data
- if fs.exists(shell.resolve(file)) then
- h = fs.open(file,'rb')
- else
- error()
- end
- local l = fs.open("tmp",'w')
- local str = ""
- while true do
- data = h.read()
- if data then
- data = data + 5
- str = str..string.char(data)
- else
- break
- end
- end
- l.write(str)
- l.close()
- shell.run("tmp")
- local l = fs.open("tmp",'w')
- l.write(" ")
- l.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement