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 - [EMAIL PROTECTED] "Jay Lepore" <[EMAIL PROTECTED]> wrote in message 9d4rfk$g48$[EMAIL PROTECTED]">news:9d4rfk$g48$[EMAIL PROTECTED]... > 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? > > [EMAIL PROTECTED] > > > > -- > 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] > -- 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]