From: Al Cholic Date: 2007-07-05T07:02:18+09:00 Subject: How to find at which line characters appear Hello, I have a file that includes a "---------" string at a certain line number. How can I find out at which line number the string occurs? Would it be best to split the text file into an array with split("\n") and then use a for loop or is there some other hidden methods in ruby? Basically I want to start reading a text file after the "---------" line that appears in it. Can someone help please? Thanks in advance. -- Posted via http://www.ruby-forum.com/.