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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
chomping
the line on the way. It's easy enough in c but I would like to do it
using
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?

Cheers,
Phil
This topic is locked and can not be replied to.