in reply to Re: print to output problem
in thread print to output problem

i have multiple entries in my input file to look at, so if i was to print outside the while loop, surely i will only be printing the last loop through the input?

Replies are listed 'Best First'.
Re^3: print to output problem
by Joost (Canon) on Jul 07, 2004 at 16:39 UTC
Re^3: print to output problem
by Anonymous Monk on Jul 07, 2004 at 16:40 UTC
    here is my input file:
    # input for ....find 17th and 18th number # input for .... again Nd RES PDB val 1 140 31 20.0 1 142 33 0.0 1 143 34 10.0 1 144 35 0.0
    say 17th number is 143, would print out 10 on first loop then say 17th number is 140 would print 20 on second