2
I accidentally clicked on a post It was edited here and I saw that Stackoverflow showed the differences of the edition. Soon, a lamp flashed over my head and now that I’m dealing with a CVT project, I thought of an audit feature of the generated files, but not only showing if it’s different from the original or not, something far from str1 != str2
, I want you to show even what has been changed.
File . txt sent for audit
A100000000000000000010000199000000000000000
E000000000000000000010000111000JARED-LETO--
File . txt generated by the system (this being the original)
A000000000000000000020000129000000000000000
E000011110000000000010000441000HEATH-LEDGER
What do I expect
A+000000000000000000+00001+9000000000000000
E0000++++0000000000010000++1000+++++-++++++
Above an example, exchanging the differences for +
.
I had thought of doing the code mapping position by position of each character of the two files, but still would be different from how it is here in the forum. I also looked for something on github
and did not find. Someone may have a solution for this ?
You want to be like one diff between the two files. See if this can help you A diff implementation for PHP
– fernandoandrade