Reputation: 35
Is there a utility or thirdparty library out there to compare two text files in flex. Assuming that, I have loaded two different text files using the 'FileReference', and now I want to compare the contents of these two. Similar to the SVN diff, I want to find out the edited/added/deleted content for each line.
I have gone through this thread [ Is there a way to compare text files through Flex? ] but it's not answered here.
Thanks,
Upvotes: 2
Views: 565
Reputation: 3413
I think that there's no one, yet.
Given the similarities between as3 and js, a port from one of this two libraries should be straightfoward
http://ejohn.org/projects/javascript-diff-algorithm/
Upvotes: 0
Reputation: 148
I'm pretty sure this link will guide you towards your solution. May have to do some tweaking to work with your feature list, but it should get you 90% of the way there.
I just searched for 'as3 file differential' in Google.
Upvotes: 1