On Monday 07 May 2001 02:41, Jay Lepore wrote:
> I have an ASCII fixed width text file I'm trying to convert to an array
> of fields. But I need to keep the spaces in tact so I know exactly
> where one field ends and another begins.
>
> Do you know of any way to modify the default behavior of file() which
> strips the blanks spaces out when returning the array?
(1) Don't shout in the subject. It annoys people.
(2) file() doesn't do that. It's a bug if it does it.
(3) How did you see that the blanks are cut out? By doing a
echo "Line: '$Line'<br>" ? Then of course you don't see the blanks -
you're looking at HTML code.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Error 032: Recursion error - see error 032
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]