From: Mark Probert Date: 2005-03-01T06:20:50+09:00 Subject: Re: catting files Hi .. On Monday 28 February 2005 13:02, Austin Ziegler wrote: > � � of = "plato.txt.fct" > � � clean(of) > � � File.open(of, "wb+") do |outf| > � � � Dir["Plato/*.txt"].each do |inf| > � � � � outf.puts IO::read(inf) > � � � end > � � end Perfect! user system total real sys_cat 0.000000 0.007812 0.101562 ( 0.164781) rb_cat 0.953125 0.070312 1.023438 ( 1.065408) faster_cat 0.046875 0.078125 0.125000 ( 0.166651) Thanks, Austin. I knew there was a better way :-) -- -mark. (probertm at acm dot org)