I want to count number of occurences of "if" and "//" words from txt file using C# what's the best way to do this, need to show this count on console.
also count how many blank lines are in the text file?