Hi, all -- I'm wrestling with a data file containing owners and contact info and it suddenly occurred to me that I could probably change my record separator from \n to \n\n (a blank line) and grab the whole record that way. Assuming I figure out how to do that, then how do I match the pieces?
The file looks a lot like header stuff code unit owner home_phone work_phone addr city, st zip where any of the phone numbers or the addresses might be missing, but we can count on the column positions for formatting (and thus parsing). So I probably go through a while (<>) loop and it sucks in each record for me, but then how do I match to get the various pieces -- around the newlines? Yes, sample code would be welcome :-) So would pointers to where this has been done before; I'm just not finding it as I read the code examples from _Programming_ (2e) this morning :-( TIA & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature