Menu

#25 FNR changes on getline from external file

open
nobody
None
5
2003-10-22
2003-10-22
Neil Parks
No

When doing "getline < secondary_file", value of FNR
should not change. But it does.

After reading the first three records of an EDI file
(the ISA, GS, and ST segments) I filled several arrays
from lookup tables. When I read the next EDI segment
(BQT in this case) my FNR should have been 4, not 1.

One 2good.TA 1 ISA
2good.TA
2good.TA 1 ISA
2good.TA 2 GS.
2good.TA 3 ST.
2good.TA 1 BQT
2good.TA 2 REF
2good.TA 3 REF
2good.TA 4 DTM
2good.TA 5 PWK
2good.TA 6 RRA
2good.TA 7 RRA
2good.TA 8 RRA
2good.TA 9 RRA

Neil Parks
nparks@despammed.com

Discussion


Log in to post a comment.

MongoDB Logo MongoDB