Skip to content

Instantly share code, notes, and snippets.

@ebot
Created November 12, 2008 13:51
Show Gist options
  • Save ebot/24158 to your computer and use it in GitHub Desktop.
Save ebot/24158 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby -wKU
error_file = File.new '2003_errors.txt', 'w'
Dir.foreach(".") do |x|
error_file << File.new( x, 'r' ).read if x[x.length-3, 3] == 'txt'
end
error_file.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment