Re: parsing a datafile.

2003-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Rob Dixon said: >If you set the input record separator variable to a number, it will do >fixed-length reads from the file. THen you can use 'unpack' to split >each record into its constituent fields. Try like this: As per my response, it must be a REFERENCE to a number: >$/ = 65;

Re: parsing a datafile.

2003-02-04 Thread Rob Dixon
Christopher M Burger wrote: > I was wondering if anyone had any ideas on how to parse a datafile > with fixed length records but no carriage returns. All records are > on one line. There are 3 fields per record the first is 10 spaces, > the second is 15 and the third is 40 then it starts back with

RE: parsing a datafile.

2003-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Bob Showalter said: >Christopher M Burger wrote: >> I was wondering if anyone had any ideas on how to parse a datafile >> with fixed length records but no carriage returns. All records are >> on one line. > >The read() function lets you read a fixed block of bytes. So does the <> opera

RE: parsing a datafile.

2003-02-04 Thread Bob Showalter
Christopher M Burger wrote: > I was wondering if anyone had any ideas on how to parse a datafile > with fixed length records but no carriage returns. All records are > on one line. The read() function lets you read a fixed block of bytes. > There are 3 fields per record the first is 10 spaces, >

Re: parsing a datafile.

2003-02-04 Thread Frank Wiles
.--[ Christopher M Burger wrote (2003/02/04 at 10:51:56) ]-- | | I was wondering if anyone had any ideas on how to parse a datafile with | fixed length records but no carriage returns. All records are on one line. | There are 3 fields per record the first is 10 spaces, the second

RE: parsing a datafile.

2003-02-04 Thread Timothy Johnson
them later. -Original Message- From: Christopher M Burger To: [EMAIL PROTECTED] Sent: 2/4/03 7:51 AM Subject: parsing a datafile. I was wondering if anyone had any ideas on how to parse a datafile with fixed length records but no carriage returns. All records are on one line. There are 3

parsing a datafile.

2003-02-04 Thread Christopher M Burger
I was wondering if anyone had any ideas on how to parse a datafile with fixed length records but no carriage returns. All records are on one line. There are 3 fields per record the first is 10 spaces, the second is 15 and the third is 40 then it starts back with 10 again. Any help would be apprec