From: "Daniel Carrera" <dcarrera / math.umd.edu>


>
> I'm trying to figure out how to use File.
>
> I want to read each line, process it, print that to another file, and then
> rename the output file.  This is how I'd do it in Perl:
>
> [...]


For any question that begins like that, the answer is "Read 'The Ruby Way'".
You'll be glad you did.

Cheers,
Gavin