How to compare lines from two RichTextBox controls and show what has been changed/eliminated/added

  • Thread starter Thread starter Mattia Fanti
  • Start date Start date
M

Mattia Fanti

Guest
Hi, I'm downloading a list of strings and I am populating a richtextbox. After 5 minutes I am updating the richtextbox and I would like to know what has been eliminated/changed/modified/added in the new update.
I'm scraping the internet to look for valuable information about this problem but many of those are quite weird tough. I am talking about this topic and this topic
Endeed using them the code is recognizing some of the already present text as changed.
I am expecting that when I open the program and I have a list like:

Hello
my names is
Mattia

and in the 2nd update

Hello
my name is
Jimi


The program have to recognize that is missing "Mattia" and "Jimi" is added, so it should return in a msgbox or label:
"Mattia" has been eliminated.
"Jimi" has been added.

All the lines could contains 2 or 4 words, not just 1 as in the example.
Thanks

Continue reading...
 
Back
Top