file() shooting blanks - importing fixed width file for use in MySQL

From: Date: Sun, 06 May 2001 19:06:13 +0000
Subject: file() shooting blanks - importing fixed width file for use in MySQL
Groups: php.db 
Request: Send a blank email to php-db+get-9135@lists.php.net to get a copy of this message
Hello, I have an ASCII fixed width text file I'm trying to convert to an array of fields. When I use file() to place each line (record) in it's own array element, it strips out any blanks it finds except one. This results in in ABC MOTORS becoming ABC MOTORS. That creates a problem if ABC is in a fixed width 5 character field and MOTORS is in its own field. Any ideas on how to get file() to not shoot out my blanks would be appreciated. Jay@pineisland.net

« previous php.db (#9135) next »