Search found 1 match

by nuvak
Wed Mar 18, 2009 6:29 pm
Forum: Challenges Solved
Topic: rangearmentRe
Replies: 19
Views: 3386

My solution is similar, only a different tool :D

Code: Select all

irb(main):066:0> File.open("../r.png",File::WRONLY|File::TRUNC|File::CREAT){|ofile|
irb(main):067:1* Dir.glob("**/*txt").sort.each{|filename| 
irb(main):068:2* ofile.putc File.size(filename)
irb(main):069:2> }}