How can I check all the data LINE-BY-LINE inside of the file and compare it into another file?
How can I check all the data LINE-BY-LINE inside of the file and compare it into another file after?
Depends on the file types, what kind of comparison you want to do, etc, but you could set up a loop and just iterate through each line in both files, comparing equality - that’s a simple version for checking that they’re not the same/finding which line(s) differ.
To properly answer that question would require hours of tuition - it’s really a fundamental computer science topic. Understanding different algorithms & their trade-offs is not UiPath specific, but if you have an algorithm in mind, I could give advice on how to apply it in Studio.
The comparison of the text file after the extraction of the zip files and the comparison of the data inside of the text file.
Regards,
France
You need to be more specific. If I spent hours writing a dozen different ways to do it, all of them could be wrong… because you haven’t provided enough information.
e.g.
-
compare line 1 to line 1, line 2 to line 2 and so on
-
compare line 1 to every line, compare line 2 to every line, and so on
-
compare checksums, versus string exacts, versus string case invariant, etc etc etc
What are you even checking for? What is the comparison you’re making?