Reading file multiple field

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

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…

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/

On Wed, Sep 16, 2009 at 9:49 AM, prashanth hiremath
[email protected] 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 D.
http://destiney.com/