hi, all

I have a programming question: in the *NIX world, there is a small
utility named "paste", that can combine several files together by
columns. For example:

file "x.dat"'s content is:
1
2
3
...

file "y.dat"'s content is:
a
b
c
...

then "paste x.dat y.dat > z.dat" will generate z.dat as:
1 a
2 b
3 c
...

If I want to do it in Ruby, and number of files is a variable, and
each file itself can be potentially huge ... what would be the most
cost efficient way of implementing this?

Thanks in advance.

Oliver