Re: [PHP] Creating an array with a file

2002-02-11 Thread DL Neil
Scott, > I am seeking some thoughts on if this is the way I should tackle this > problem. I have two files, both of them tab delimited text files that I > need to combine and then output a new file. > > My idea was to put both files in an array, calling the fields I need, > i.e. $field[0], $fiel

RE: [PHP] Creating an array with a file

2002-02-10 Thread Scott
uot;"; } Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 11, 2002 5:32 PM Subject: [PHP] Creating an array with a file > Hi All, > > I am trying to

Re: [PHP] Creating an array with a file

2002-02-10 Thread Bogdan Stancescu
You need to actually read the file in order for this to work. You're just opening it and then printing the file handle... Bogdan Scott wrote: > Hi All, > > I am trying to create an array from a text file that I will process and > rewrite in a new format. My question is, is it possible to read

RE: [PHP] Creating an array with a file--Fixed

2002-02-10 Thread Scott
onday, February 11, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Creating an array with a file Hi All, I am trying to create an array from a text file that I will process and rewrite in a new format. My question is, is it possible to read the file in one line at a time and then separate the

[PHP] Creating an array with a file

2002-02-10 Thread Scott
Hi All, I am trying to create an array from a text file that I will process and rewrite in a new format. My question is, is it possible to read the file in one line at a time and then separate the tab-delimited fields and finally rewrite the new file? The fields are tab delimited and here is w