thanks in advance
having a problem and cant solve it :-(
i am having a text file and i need to do complex (for me) count on it
the text look like that (the stars are text and numbers)
***************************************************************************************************************************************************************************
then i have x y z there are spaces between them
x y z
5 4535
6 4545
2 335553
i need to write code that will count how many same numbers i have under x
and the sum of there z like
number 5 i have 3 times and the sum of all the fives is 233524
the numbers are from 1 to 13 but if i can make one to work i can make all of them to work
please help if you can
the main problem is thet there are a lot of numbers in the text
but i need only the first row i know when the first row start
i know where the z starts for each x starts +- 2 spaces in front and back
i know its long but please help me
the only thing i was able to do is to count all the fives but i counted all of them in the text not the first row
please please help if you can
having a problem and cant solve it :-(
i am having a text file and i need to do complex (for me) count on it
the text look like that (the stars are text and numbers)
***************************************************************************************************************************************************************************
then i have x y z there are spaces between them
x y z
5 4535
6 4545
2 335553
i need to write code that will count how many same numbers i have under x
and the sum of there z like
number 5 i have 3 times and the sum of all the fives is 233524
the numbers are from 1 to 13 but if i can make one to work i can make all of them to work
please help if you can
the main problem is thet there are a lot of numbers in the text
but i need only the first row i know when the first row start
i know where the z starts for each x starts +- 2 spaces in front and back
i know its long but please help me
the only thing i was able to do is to count all the fives but i counted all of them in the text not the first row
please please help if you can