Hi hassan, I have an file x.txt which have an DestinationID|Name|City|StateProvince|Country|Latitude|Longitude|Type there are the fileds i have and also the data i want to read the file line by line into 2D array and i have to extract Latitude Longitude from the array. Regards Prashu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
prashanth hiremath wrote:> Hi hassan,> I have an file x.txt which have an > > DestinationID|Name|City|StateProvince|Country|Latitude|Longitude|Type > > there are the fileds i have and also the data i want to read the file > line > by line into 2D > > array and i have to extract Latitude Longitude from the array. > > > > Regards > > Prashu(I usually don''t do this, but I make an exception in this case) Seriously dude... 1. Learn to use a search engine 2. Ask A Question 3. Ask your question on the appropriate forum - none of yours have anything to do with Rails 4. TRY to write some code... -- Posted via http://www.ruby-forum.com/.
Unless what he wants is a file that is uploaded in a rails app? I guess that could be what he wants... If that is so then have a look at this: http://fastercsv.rubyforge.org/ http://akkdio.blogspot.com/2008/05/rails-and-fastercsv-intro.html
On Wed, Sep 16, 2009 at 9:49 AM, prashanth hiremath <prashanthhiremath2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi hassan,And everyone else? You realize thousands of Rails developers read your list emails right?> I have an file x.txt which have an > > DestinationID|Name|City|StateProvince|Country|Latitude|Longitude|Type > > there are the fileds i have and also the data i want to read the file line > by line into 2D > > array and i have to extract Latitude Longitude from the array.What is the question? Where''s your own failed attempt at solving the problem? -- Greg Donald http://destiney.com/