Compare Two Strings

  • Thread starter Thread starter Twinkle
  • Start date Start date
T

Twinkle

HI guys
i have two strings .in first string a word file is there
and the second string a html file is there.now i want to compare to
both string if some word missing in second string then it should be
highlight by color change.becaz it's a testing purpose tool

plz somebody help me.and send the code at my id
(e-mail address removed)
it will be very appriciated
Thank's & Regards
 
Twinkle said:
HI guys
i have two strings .in first string a word file is there
and the second string a html file is there.now i want to compare to
both string if some word missing in second string then it should be
highlight by color change.becaz it's a testing purpose tool

plz somebody help me.and send the code at my id
(e-mail address removed)
it will be very appriciated
Thank's & Regards

Hi,
I don't understand exactly what you're asking. What do you mean by "if
some word missing in the second string"? It would really help if you
gave some example strings, with expected output.

John
 
Hi,

Even as it's not very clear what you want the comparision will fail, first a
word document is a binary file, whether html is a text file, beside the
formatting info is different in both cases.

you have to find another way of doing this.
 
Twinkle said:
plz somebody help me.and send the code at my id

The people who answer here do so on their own time. They are not in
the habit of doing your work for you. Your best bet is to post what
you have already tried and the problems you are having and then people
will suggest ways to solve your problem and help you get further along
in your project.

No will just "send the code" to you.

The link below should give you some ideas on how to implement a
difference algorithm:

http://www.codeproject.com/cs/algorithms/DiffAlgorithmCS.asp

Good Luck
 
Chris said:
The people who answer here do so on their own time. They are not in
the habit of doing your work for you. Your best bet is to post what
you have already tried and the problems you are having and then people
will suggest ways to solve your problem and help you get further along
in your project.

No will just "send the code" to you.
Another problem with just sending the code is that no-one else gets any
benefit.
Maybe someone needs to post a FAQ stating this (and the rest)
periodically (not that I think it would really help).
<...>

JB
 
Please let's keep the discussion in the newsgroup.

If you could post what you already have, I'm sure some people will
chime in with suggestions.
hi john
Actually i have to open word file in left side and html in
right side.for that i taken two strings one for left and another for
right.some word file Data will be existed in html file.suppose word
file in strFileName(it's string) and html file in strFileName(It's
another string) .if user Select some data in word file for compare and
click the compare button then if that data correct in html file then
it's ok .if data is not matching or some word missing in html file then
that word should be displayed by color change
that's it.
if u know about it then please help me because i have to submit on
monday.if u understood my prob then plz give me solution with code..if
u dont understand then give me u'r e-mail id i will send my tool to
you..then u can understand easily
plz help me u can contact me at my personal id it's mentioned below

Hemendra agrawal
Email ID: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top