Forum: Ruby (libruby) reading a file line by line

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Phil J. (Guest)
on 2006-05-25 21:34
(Received via mailing list)
Hi All,

Basically what I would like to do is read a file in line by line
the line on the way. It's easy enough in c but I would like to do it
the functionality from libruby.

I've go the file object using rb_file_open(), can someone suggest how I
might use each_line to do what I want to?

This topic is locked and can not be replied to.