Hi guys
I'm reading a flat file that has the following layout
391 ( 4 391 4 ) ( 40 1 40 ) ( 4\0 0\0 4\0 ) ( 0\4 0\0 0\4 ) OWNED offset 767932
next dim iter 1
392 ( 44 0 4 ) ( 40 1 40 ) ( 0\0 0\0 4\0 ) ( 4\4 0\0 0\4 ) OWNED offset 614700
I want to be able to distinguish when I have the next dim inter 1 line. ANy ideas how to do this???
I thought I coud do something like the following but everyline is always used :-(
gets $inputFile lineBuffer
if { [ scan $lineBuffer "%s %s %s %d" next dim inter one ] == 4 } {
echo "$lineBuffer"
#we have a line we dont need
gets $inputFile lineBuffer
}
Appreciate your pointers on how to overcome ...
Thanks
I'm reading a flat file that has the following layout
391 ( 4 391 4 ) ( 40 1 40 ) ( 4\0 0\0 4\0 ) ( 0\4 0\0 0\4 ) OWNED offset 767932
next dim iter 1
392 ( 44 0 4 ) ( 40 1 40 ) ( 0\0 0\0 4\0 ) ( 4\4 0\0 0\4 ) OWNED offset 614700
I want to be able to distinguish when I have the next dim inter 1 line. ANy ideas how to do this???
I thought I coud do something like the following but everyline is always used :-(
gets $inputFile lineBuffer
if { [ scan $lineBuffer "%s %s %s %d" next dim inter one ] == 4 } {
echo "$lineBuffer"
#we have a line we dont need
gets $inputFile lineBuffer
}
Appreciate your pointers on how to overcome ...
Thanks