0
how to find the number of times a specific word appears in a book in c#?
2 Respostas
+ 1
split the text by spaces, iterate over every word, check if it's your word, add 1 to a counter
+ 1
you need a counter (int) and it depends if u want to count from a file.txt or the console using a list