Cory Chamblin wrote:
>> I was also wondering if I could throw CSV.open an object instead of a
>> file, for instance, I get my csv file from another site using open-uri:
>> open(url) do |file|
>>         @body = file.read
>> end
> 
> Just make your own CSV::IOReader instead of having CSV#open do it for 
> you:
> 
> CSV::IOReader.new(open(url),"\t").each do |thing|
>   puts thing
> end
> 
> HTH,
> Cory

Wow, cool! I didnt know you could do that. This is by far the most 
helpful forum ive attended in a while. I have a tab delimited file that 
has a bunch of fields separated by tabs in each line, I figure I would 
need a multi-dimensional array to store the respective fields of every 
line, no?

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