I am trying to read from a specific line/block using array manipulation of index, but the program is terminating with an unknown error after reading from the th
array