Forum: Ruby Re: I can't believe it ate the whole thing!

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.
Peña, Botp (Guest)
on 2006-05-13 07:02
(Received via mailing list)
fr jeff:
# In order to do this, obviously you have to look at several lines of
# file, not just one at a time.  After staring at the pickaxe book for
# hour or so, the best idea I was able to come up with was to read the
# whole file into an array using File#readlines.  After that, I used
# Array#for_each_with_index to zip through the array looking for the end
# of the block (being careful to watch out for inner blocks as well).

maybe, if you care to share your code, your ruby friends here may make
it work by reading the file a line at a time..

kind regards -botp
This topic is locked and can not be replied to.