With the code below, line_num max=50. Do I use 50 in the do statement?
As I said, you have to define the arrays to be length that is the maximum value of line_num, which you tell us is 50. That will eliminate this particular error, but may not eliminate other errors and may not provide sensible results. As I don't have your data, and as I don't understand the purpose of the program, I can't say anything further. You need to understand what the program is doing, and you need to determine if this change will make sense and provide correct answers.
... View more