I really appreciate your help on this
this is a sample txt file with content:
Supplier1 1
Supplier2 2
Supplier3 3
Exoda Total:6 euros
i need to get from every input file that Total:6 euros ( The
number 6 in this case).
The logic behind it is that i need to add my daily shop expenses in a file everyday. So whenever i want to check my monthly or yearly expenses to run this subroutine and get the total expenses. So i need one number but i do something wrong i get the following output:
0
0
0
0
0
0
0
0
0
6
6
12
12
18
18
24
24
30
30
36
36
42
42
48
48
54
54
60
66
66
72
78
78
84
90
90
96
102
102
108
114
114
120
126
126
132
138
138
144
150
150
156
162
162
168
174
274
there is a confusion somewhere