Closed Thread Icon

Preserved Topic: Pulling Flat Text Files. Pages that link to <a href="https://ozoneasylum.com/backlink?for=20966" title="Pages that link to Preserved Topic: Pulling Flat Text Files." rel="nofollow" >Preserved Topic: Pulling Flat Text Files.\

 
Author Thread
Skatefx
Bipolar (III) Inmate

From: Small Patch of Grass in CT
Insane since: Mar 2001

posted posted 05-19-2001 16:29

I have asked many questions on this topic and I apologize to anybody who this sounds repetative to. What i am trying to do is pull info from a flat text file. I am just wondering the capabilities of this. The php book i have does not explain this. Im looking to pull info or layout elements from it, to make less coding. anybody got any ideas?

"Society, we all know that somethings wrong. And we've know it all along" -Pennywise-

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-19-2001 21:29

Could you be a little more specific about the info in the text file, and what you want to do with it.

- Resolutions, Of All My Fruitless Searches -

linear
Paranoid (IV) Inmate

From: other places
Insane since: Mar 2001

posted posted 05-19-2001 22:55

If you have fixed width columns, unpack() is your friend.
If you have delimited columns, split() is your friend.

And I'm always your friend.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 05-20-2001 00:03

Linear you must deal with flat-text far too often

linear
Paranoid (IV) Inmate

From: other places
Insane since: Mar 2001

posted posted 05-20-2001 05:10

I wind up having to parse things a lot that came out of a mainframe, and turn them into non-crap. Those COBOL jocks have a difficult time with anything but text, and that's difficult enough for them. They don't have regular expressions, in-place editing, fancy quoting operators, or the other niceties that Perl gives programmers.


kevincar
Paranoid (IV) Inmate

From: north hills, ca usa
Insane since: Apr 2001

posted posted 05-20-2001 06:27

>They don't have regular expressions, in-place editing, fancy quoting
>operators, or the other niceties that Perl gives programmers.

Yeah, but man do they have sub-record types and descriptions.
I dealt with off-shore credit card settlements for an e-commerce company
for a couple years... Had to write java classes to parse those puppies.
If I ever hear "Hey Kev, new FDR report" again from down the hall...


« BackwardsOnwards »

Show Forum Drop Down Menu