Output differences between 2 strings

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

I'm looking to load an ascii file's contents into a string, and
compare it against a string pulled down from a database table.
And if the database table string does not match the string in the
variable loaded from the file, dump to a long what's missing from the
table's string or what's extra in the table string.

I know I can do a string.compare and get a boolean true/false, but can
someone point me in the right direction on the how-to of parsing of
text to do what I need?

Thanks,

Tony!
 
Tony said:
I'm looking to load an ascii file's contents into a string, and
compare it against a string pulled down from a database table.
And if the database table string does not match the string in the
variable loaded from the file, dump to a long what's missing from the
table's string or what's extra in the table string.

I know I can do a string.compare and get a boolean true/false, but can
someone point me in the right direction on the how-to of parsing of
text to do what I need?

I don't think the problem, as you've stated it, is well-defined. If one
string is "12345" and the other is "13579", what do you want to put into the
long?
 

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