How can i find the first position of a line in txt file and if the position on the first and second line or more lines is 1 to sum the values on the position 5 in the txt fi