>Hi all,
>i have to check before i run an encrypted compiled program file that it is indeed the one that is supposed to be there. what is the best way to approach this?
>My initial thoughts were to open the file for reading at a low level and compare the characters with ones stored elsewhere. however, i noticed a problem arise when i compared two encrypted files from the same .prg file. they were different.
>what is a better way to do this?
>thanks
>Jordan
Jordan,
If they were different and you had no coding error then they're different. You might also use :
? FileToStr(lcFile1) == FileToStr(lcFile2)
or
? FileToStr(lcFile1) == lcStored
Cetin