Text file comparison

Hi,

First, I suppose perhaps you should check the result is what you expect, as the following image.

TypeArgument should be set as KeyValuePair<String,String>

I can’t find KeyValuePair<String,String>

Ok, scratch that…I made it work!

Let’s see if I can wrap this project. I will mark your solution as soon as done. I will post here if I need help.

Thank you very much!

1 Like

Hi,

Can you just type KeyValuePair in the textbox and select KeyValuePair<TKey,TValue> under System.Collections.Generic? Then set String type for both dropdown list.

img20200326-8

Regards,

Ok, it works. How do I send this to a text string? Sorry, I’m tired and I appreciate your help.

1 Like

Hi,

Hope the following helps you.

Regards,

That works great, thanks again.

1 Like

Unfortunately after lots of testing the COMPARE does not detect the text changes…I must be doing something wrong.

I’m feeding the custom activity with File#1 and File#2…no errors but no gaps output.

DELETE:after
INSERT:before
EQUAL:.txt

That’s what I get. The “after” and “before” are the file names…

I fixed it…stupid mistake…

Well…this is not over yet. I’m now getting an error. The For each hits an empty “results” and throws an error…help!

Hi,

We can prevent null reference error by checking if the variable is null or not in advance, as the following image…

img20200327-3

Regards,

I had to do something similar and it’s working now.

Thanks,

1 Like