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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.