From: Phil Jackson Date: 2006-05-26T02:33:54+09:00 Subject: (libruby) reading a file line by line 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