John Filben wrote:
Can someone please let me know how to read a file one record at a time (just
say fixed block for now - see small example below) and assign columns to
fields. Then reference the field names with if-then-else logic.
Sample Fixed Block File:
John98762
John82634
John11234
Tha
> Why negative indexes when fields lengths are known?
I'll admit I made a few assumptions based on what I could glean from the OP:
* names will vary in length in a questionnaire or poll (which this
appears to be)
* answers will always be represented by a single digit
* area code (at least in US)
On Fri, Dec 18, 2009 at 8:57 AM, John Filben wrote:
> Can someone please let me know how to read a file one record at a time (just
> say fixed block for now - see small example below) and assign columns to
> fields. Then reference the field names with if-then-else logic.
>
> Sample Fixed Block Fi
Serdar Tumgoren dixit:
> > Thank you - can you please assume that the data provided is the following:
> >
> > Columns 1 - 4 = Name (in record 1 of example = "John")
> > Column 5 = Answer1 (in record 1 of example = "9")
> > Column 6 = Answer2 (in record 1 of example = "8")
> > Column 7 = AreaCode
I'm reposting John's follow-up question (below) to the list.
> Thank you - can you please assume that the data provided is the following:
>
> Columns 1 - 4 = Name (in record 1 of example = "John")
> Column 5 = Answer1 (in record 1 of example = "9")
> Column 6 = Answer2 (in record 1 of example = "8
> Can someone please let me know how to read a file one record at a time (just
> say fixed block for now - see small example below) and assign columns to
> fields. Then reference the field names with if-then-else logic.
>
> Sample Fixed Block File:
>
> John98762
> John82634
> John11234
>
Hi John,
Can someone please let me know how to read a file one record at a time (just
say fixed block for now - see small example below) and assign columns to
fields. Then reference the field names with if-then-else logic.
Sample Fixed Block File:
John98762
John82634
John11234
Thank you.
John Filben