Hie guys.How do you write a vb function that returns the frequency of each word that appears in a given text file.e.g.if the word "the" appears twice,it would return "The word 'the' appears 2 times".This has to be done until the end of the file without searching for a particular word.
schimusi 0 Newbie Poster
Recommended Answers
Jump to PostHi Schimusi,
Have you tried it yourself first?
First show your effort here, or any part where you are having problem.
Jump to PostStick them in a dictionary and do what you need to do from there. If you take advantage of a case insensitive dictionary and using Regex to split on word boundaries you can also eliminate punctuation errors in your application.
Public Class FormStart Private Sub Button1_Click(ByVal sender …
All 5 Replies
Piya27 4 Junior Poster
kvprajapati commented: I agree. +3
Piya27 4 Junior Poster
sknake 1,622 Senior Poster Featured Poster
schimusi 0 Newbie Poster
Piya27 4 Junior Poster
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.