Re: splitting / unpacking line into array

2004-02-03 Thread Wiggins d'Anconia
John McKown wrote: On Mon, 2 Feb 2004, Wiggins d Anconia wrote: Sounds pretty good to me. One concern, do the sub record types always have the same number of fields? Using your array to unpack into may turn into a maintenance nightmare with respect to indexing into it to get values if the recor

Re: splitting / unpacking line into array

2004-02-02 Thread John McKown
On Mon, 2 Feb 2004, Wiggins d Anconia wrote: > > Sounds pretty good to me. One concern, do the sub record types always > have the same number of fields? Using your array to unpack into may > turn into a maintenance nightmare with respect to indexing into it to > get values if the record formats

Re: splitting / unpacking line into array

2004-02-02 Thread Wiggins d Anconia
> I have an input file which has many subrecords. The subrecord type is > denoted by the first 4 characters of the file. The rest of the line is > formatted like similar to the way that "pack" would format one. That is, > each data point in a subtype is always at the same offset for the same >

splitting / unpacking line into array

2004-02-02 Thread John McKown
I have an input file which has many subrecords. The subrecord type is denoted by the first 4 characters of the file. The rest of the line is formatted like similar to the way that "pack" would format one. That is, each data point in a subtype is always at the same offset for the same length. E.