Changed i = i + 1 to i++.
Changed filein.lin values.  PGM was all 0.  Now outputs usable data.