From: Li Chen Date: 2006-12-11T14:17:35+09:00 Subject: Re: format problem Paul Lutus wrote: > You should be able to create an abbreviated version of your program that > simply creates and displays the problem array. That would allow an easy > analysis and fix. Hi Paul, I run your codes and it works fine. And here is my codes with the problem: ### require 'pp' require 'enumerator' file_name='C:\Ruby\self\exp\BMDC5-3H\EXPT.083' #read the data file data =[] _1D_array=[] f=File.open(file_name) f.each do |line| next if line=~/CPM/ # get the 3th column for each line _1D_array<Exit code: 0 -- Posted via http://www.ruby-forum.com/.