James Edward Gray II wrote:
> On Sep 13, 2009, at 2:28 PM, Dot Baiki wrote:
> 
> Hello.
> 
Hi there again!

How are things going over there? Hope fine :-)


> Is this file large?  It looks like you may eventually just want all of
> the data in it. If that's the case, and it's not too big to suck the
> whole thing into memory, it may be easier to work with that way.  For
> example:

Well, I expect that this CSV file contain about 12-15 columns and aprox. 
36k rows. I followed your suggestion.


> You remove an ID from employee_id after reading each line of your CSV
> data.  I think you meant to do something more like this:
> 
> employee_id.each do |id|
>    FCSV.foreach(input_file, :headers => true) do |row|
>      puts "value: #{row}" if row["id"] == id
>    end
> end
Amazing. Lovely solution. Sweet :-) The only thing I had to do was to 
add ".to_s"...here:
>      puts "value: #{row}" if row["id"] == id.to_s
> 
> Hope that helps.

Indeed it did. Big thank you! Now I have to sort them and send them 
trough odf-report and soon soon I will see something working. We'll keep 
in touch.
> 
> James Edward Gray II

dot baiki
-- 
Posted via http://www.ruby-forum.com/.