Hi Daz,

Thanks not only to the succint solution to my problem:

> File.open('test.dat') do |fi|
>   while rec = fi.gets
>     puts "Record: " << rec
>   end
> end

but for your explanation of the flaw in my approach.  


Regards,
Richard