Re: converting fields from a fixed length text file into an array
| From: | Gyozo Papp | Date: | Mon, 07 May 2001 14:34:39 +0000 |
| Subject: | Re: converting fields from a fixed length text file into an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51750@lists.php.net to get a copy of this message | ||
Well,
if you'd like to a little bit more sophisticated file reading,
just give a try to my class strStream, here is a lin to its short description
http://phpclasses.upperdesign.com/browse.html?file=784
(class reference)
http://phpclasses.upperdesign.com/packages/228
(the whole package)
Papp Gyozo
- pgerzson@freestart.hu
"Jay Lepore" <jayleporehsd@earthlink.net> wrote in message news:9d4rfk$g48$1@toye.p.sourceforge.net...
> 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?
>
> admin@callutopia.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>