Created
November 12, 2008 13:51
-
-
Save ebot/24158 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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