Hi all, I have a file that contains characters. How do I get total of spesific character from that file and save the count to a variable for doing for calculation.
data.txt
i want to get total of 4's character in that file and save it for calculation for axample.
thanks first for your help..
data.txt
Code:
1
2
2
2
2
3
3
4
5
6
7
8
5
4
3
4
5
6
thanks first for your help..