Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test6
- id = 90052
- loop do
- body = File.open("channel/#{id}.txt", "r").read
- puts body
- if m = body.match(/Next nothing is (\d+)/)
- id = m[1]
- else
- break
- end
- end
- require "rubygems"
- require "zipruby"
- c = ""
- Zip::Archive.open('channel.zip') do |a|
- a.num_files.times do |i|
- a.fopen(a.get_name(i)) do |f|
- c << f.comment if f.comment
- end
- end
- end
- puts c
- end
Add Comment
Please, Sign In to add comment