How to check if two files are identical
Posted
#1
(In Topic #1174)
Trainee
Is there a way to check if two files are identical?
I notice that there is a gb.Hash class where you can get a hash value of some specified text, but this doesn't give the hash value of a specified file.
I want to be able to say;
a=hash(file1)
b=hash(file2)
does a=b?
Thanks for looking
Posted
Regular

b
Posted
Guru

Posted
Regular

/lang/comp - Gambas Documentation
If you want to check the equality of two files using the external functions of the libgio API:
https://www.gambas-it.org/wiki/index.php/Controllare_l%27uguaglianza_di_due_file_mediante_le_funzioni_esterne_del_API_di_libgio
Of course, you could also write an "ad hoc " function:
Code (gambas)
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Trainee
Thanks for your time.
Pusherman
1 guest and 0 members have just viewed this.


