Jump to content

Recommended Posts

Posted (edited)

Thanks for your reply. The problem with comparing files line by line is... how would I know if half way through line 66 in file 1 is the same as the start of line 57 in file 2? Btw these files will be over 1gb in size.

EDIT: Just found these threads, could be useful.

http://www.autoitscript.com/forum/index.php?showtopic=34587

http://www.autoitscript.com/forum/index.php?showtopic=94799

Though they seem a bit too basic for what I need.

Just want to compare 2 files and find the hex offsets.

Edited by toxicdav3
Posted

Thanks for your reply. The problem with comparing files line by line is... how would I know if half way through line 66 in file 1 is the same as the start of line 57 in file 2? Btw these files will be over 1gb in size.

EDIT: Just found these threads, could be useful.

http://www.autoitscript.com/forum/index.php?showtopic=34587

http://www.autoitscript.com/forum/index.php?showtopic=94799

Though they seem a bit too basic for what I need.

Just want to compare 2 files and find the hex offsets.

thanks for those two links, everything I need to get it done myself is there. I think everything you need is there too but you will have to do a bit of figuring out for your specific need. Looks like it comes down to opening both files, reading a line from both files as an array, converting the arrays to strings then using StringCompare (in the help files) to compare each line. With some decent if then trees you can have the script generate a report to see when the two files stop being identical. With a bit more you can have the script pick up again when the files start being identical again.

you can do it! :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...