krimo 0 Posted December 28, 2022 SVP comment lire un fichier binaire ou deux fichier binaire pour faire la comparaison les fichier binaire ecris en hexadecimale comme ci jointfichier2.binfichier1.bin merci fichier3 fichier4 Share this post Link to post
Sherlock 663 Posted December 28, 2022 You want to compare two binary files, if I understand correctly. Here is a program that does that: https://www.cjmweb.net/vbindiff/ Share this post Link to post
programmerdelphi2k 237 Posted December 28, 2022 (edited) in fact, you can use "RAD Studio by Embarcadero" IDE: - Edit-> Compare -> Launch Beyound Compare!!! or you can do it yourself: TFileStream (or any other) class to open 2 files read bytes from files in the same offset compare it the idea is: Quote LSourceHandle : NativeUInt; // for each file LBuffer : TBytes; // for each file // LSourceHandle := FileOpen(MyFilename, fmOpenRead or fmShareExclusive); // open a file for reading... then you need open "2" in your case! LBufferReaded := FileRead(LSourceHandle, LBuffer[0], LBufferSize); // read bytes from file and go... // needs compare it... you use a "looping" to compare each item (byte) in each array: "LBuffer-1" and "LBuffer-2" // read a buffer (bytes) from each file, do the looping using "buffer size", compare item (bytes) each other if (LSourceHandle <> INVALID_HANDLE_VALUE) then FileClose(LSourceHandle); // close a file (if opened) Edited December 28, 2022 by programmerdelphi2k Share this post Link to post