Hi,

One difference between

>   lines = IO.readlines(file)

and

>   lines = File.open(file).readlines

is that, I think, IO.readlines is handling closing the file 
for you, whereas the latter is relying on the garbage collector
to (eventually) close the file?


Regards,

Bill