Re: [go-nuts] Need to read file in double loop

2021-01-12 Thread Tong Sun
Ops. sorry, it is. Wonder why it wasn't working before (tried at least twice). On Tue, Jan 12, 2021 at 3:12 PM Tong Sun wrote: > > That's a typo. Changing it to "E" you'd think the problem is solved? > > On Mon, Jan 11, 2021 at 10:14 PM Kurtis Rader wrote: > > > > You should start by asking

Re: [go-nuts] Need to read file in double loop

2021-01-12 Thread Tong Sun
That's a typo. Changing it to "E" you'd think the problem is solved? On Mon, Jan 11, 2021 at 10:14 PM Kurtis Rader wrote: > > You should start by asking yourself why your program outputs "1", "2" and > "S". Hint: after seeing "S" you don't break out of the inner loop until > another "S" is

Re: [go-nuts] Need to read file in double loop

2021-01-11 Thread Kurtis Rader
You should start by asking yourself why your program outputs "1", "2" and "S". Hint: after seeing "S" you don't break out of the inner loop until another "S" is seen which your sample data does not include. On Mon, Jan 11, 2021 at 6:59 PM Tong Sun wrote: > Hi, > > I need to read file in double