@mlwn Well, what I would like is when I run the code, it would display : "Minimal path is: 7 + 6 + 3 + -11 = 5" - currently, my code displays "Minimal path is: 5"
@mlwn haha yes sorry.. well basically, i calculate the minimum path from top to bottom in a triangle (i get the value) but now would like to display the actual path (which nodes it goes through) but i'm having trouble with that
@berserk yes it is after the while loop that counts the lines.. so is it because i've reached the end of the file, so when i do readLine again, it's obviously null? then how would i go back to the beginning of the file