From: Robert Klemme Date: 2012-03-05T22:17:02+09:00 Subject: Re: Reading particular text from a txt file Lekha Selvaraj wrote in post #1050192: > I know this is not right coz I didn't get the output. How should I > re-write it? to just get the output 111111 Please post a sample of the file so we can test ourselves. Cheers robert -- Posted via http://www.ruby-forum.com/.