Hi all. I'm having a bit of a problem comparing 1 file with another.
for now i have them both in the same folder, but when i release my program to the public, i would like 1 file to be in 1 place, and the other to be in the other place, and compare files. if 1 is not EXACTLY the same as the other, then u've hacked the file. if 1 of the files are missing then uve deleted on purpose or hacked the file.
i would like a simple answer plz & thank you
Here is the code I wrote:
open to read 1,dir temp()+"\"+"settings.dat"
open to read 2,dir temp()+"\"+"temp0100292847745674839.dat"
while file end(1)=0 and file end(2)=0
read string 1,i$
read string 2,i1$
print i$
print i1$
sync
endwhile
close file 1
close file 2
//compare file 1 with file 2
//if both files are not equal then end
if i$<>i1$
end
endif
close file 1
close file 2
thanks! ^^
CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!