From: Junhui Liao Date: 2010-08-03T16:51:44+09:00 Subject: Re: my script just read one line? Hi, Jesus, Thanks a lot for your comments. > Be careful, you are doing two readlines per iteration, so you might > skip the important line. If you know you have only one line before the > important data you can just do file.readline and continue. Totally, the header has 21 lines. And the last line of header is ''Data:". Fortunately, the 21 is an odd number so if just in the view of result, is same as the header has only one line :-). For sure, this is not robust. I will try to update it. Cheers, Junhui -- Posted via http://www.ruby-forum.com/.