RE: [PHP-WIN] Reading in text file characters

2003-01-15 Thread Dash McElroy
game. On Wed, 15 Jan 2003, Nichols, Mark A. wrote: > I always look in the manual first. I guess I missed it. > > Thanks > > > -Original Message- > From: Mikey [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 10:42 AM > To: [EMAIL PROTECTE

RE: [PHP-WIN] Reading in text file characters

2003-01-15 Thread Nichols, Mark A.
I always look in the manual first. I guess I missed it. Thanks -Original Message- From: Mikey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Reading in text file characters You could try using the substr() function

RE: [PHP-WIN] Reading in text file characters

2003-01-15 Thread Mikey
TECTED]] > Sent: 15 January 2003 15:17 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Reading in text file characters > > > The following code reads in a text file one line at a time. > > > > for ($k=0; $k<=count($readfile)-1; $k++) { > > $fields = sp

[PHP-WIN] Reading in text file characters

2003-01-15 Thread Nichols, Mark A.
The following code reads in a text file one line at a time. for ($k=0; $k<=count($readfile)-1; $k++) { $fields = split("\t",$readfile[$k]); echo nl2br("$fields[0]"); } The problem is that it seems to strip the empty spaces out. My text file is fo