blob: c99bdf16c9d1d311bb7d6f97902eeb4d58253260 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
const file1 = Deno.readFileSync(Deno.args[0]);
const file2 = Deno.readFileSync(Deno.args[1]);
if (file1.length !== file2.length) {
console.error("File lengths are different");
Deno.exit(1);
}
for (let i = 0; i < file1.length; i++) {
if (file1[i] !== file2[i]) {
console.error("Files are different");
Deno.exit(1);
}
}
console.error("Same");
|