reading from a text file

From: slickn_sly (bng_s_at_hotmail-dot-com.no-spam.invalid)
Date: 03/30/05


Date: 29 Mar 2005 19:56:30 -0600

I'm trying to read a text file and storing each line to a specific
array.
so if i define an array - name, address,... and in my text file I have
something like:

John Doe
Seattle, Washington

Julie Walsh
New York, New York

I wanna store the names into the name array and the addresses into the
address array. Anybody have any ideas?
Posted at: http://www.groupsrv.com

 Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
                http://www.usenet.com



Relevant Pages

  • Re: Remove quotes from form field
    ... > I'm having trouble returning the value less the quatation marks from the ... > I'm having the words from the form field put into an array. ... trackworker AND "New York" ...
    (php.general)
  • Re: inserting elements within an array
    ... Hendri Kurniawan wrote: ... This will work given the example array, but won't in the general case. ... "New York, New York", ... something virtually guaranteed to be unique -- as a divider. ...
    (comp.lang.php)
  • Re: reading from a text file
    ... >Seattle, Washington ... >New York, New York ... >address array. ... is a string. ...
    (comp.lang.c)
  • Re: [PHP] str_replace to ignore commas
    ... Some times the New is on one line and the York is on the next ... For instance the print_r for the array shows me this in one instance. ... I know that the comma is ... causing trouble as well. ...
    (php.general)
  • Re: A challenging file to parse
    ... Do the same thing, but when storing in an array, store it at ... Also the data format. ...
    (comp.lang.c)