I want to calculate the instance of * in the text file....

You may read the file char by char and increment a counter if the symbol '*' is encountered

Or read all the lines and store in a string and then use any string operation to do the same

Can't post any codes as I don't have any "hands - on" experience on VB.net