I'm new to coding and I want to make a program which counts the characters in a text file, but I want it to just count the letters and other symbols but the spaces in-between each word is getting recognized as a character, is there a way to make it so it doesn't count spaces as a character?
My code so far:
label2.Text = richTextBox1.Text.Length.ToString();