Dommy
May 18th, 2001, 09:29 AM
Hullo,
I was wondering if anybody out there could help me with some basic syntax and methods of extracting bytes from a file (eg text file) for comparison with the bytes from a another file, for a file compare I've been asked to do.
Put simply, it has to output something like this:
Comparing files file1.txt and file2.txt
0000000A: 31 33
0000000C: 33 31
0000000F: 34 36
00000011: 36 34
00000014: 37 39
00000016: 39 37
00000023: 4D 6D
00000024: 4E 6E
00000025: 4F 6F
How do I read the bytes from file1 so I can compare them with file2... I've done it for ascii compare, but basically I don't know how to read each byte suitably. There's a command I'm sure, anyone know what it is and how to use it? Pretty simple for anyone that's done it I know, but I can't find help notes anywhere for some strange reason.
Email me at Dommy@optusnet.com.au if you can help
Cheers
:D
I was wondering if anybody out there could help me with some basic syntax and methods of extracting bytes from a file (eg text file) for comparison with the bytes from a another file, for a file compare I've been asked to do.
Put simply, it has to output something like this:
Comparing files file1.txt and file2.txt
0000000A: 31 33
0000000C: 33 31
0000000F: 34 36
00000011: 36 34
00000014: 37 39
00000016: 39 37
00000023: 4D 6D
00000024: 4E 6E
00000025: 4F 6F
How do I read the bytes from file1 so I can compare them with file2... I've done it for ascii compare, but basically I don't know how to read each byte suitably. There's a command I'm sure, anyone know what it is and how to use it? Pretty simple for anyone that's done it I know, but I can't find help notes anywhere for some strange reason.
Email me at Dommy@optusnet.com.au if you can help
Cheers
:D