I have a text file name fruit.txt that contains the following information of fruit id, fruitName and fruitQuantity.



1:pear:30
2:apple:20
3:banana:24
4:orange:15
5:watermelon:35