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;
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
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
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,
>
.--[ 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
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
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