> the moral is, there is always a simpler way
>
> require 'cgi'
> open(ARGV[1], 'w') do |f|
> f.write(CGI::unescapeHTML(IO.read(ARGV[0])))
> end
>
> cheers
>
> SimonSimpler still:
require 'cgi'
open(ARGV.pop, 'w') { |f|
  f.write(CGI.unescapeHTML(ARGF.read))
}
that just proofed my moral
cheers
Simon