Skip to content

CompareFiles Method ​

Definition ​

  • Namespace: JASE.IO
  • Assembly: JASE.dll

Overloads ​

NameDescription
bool CompareFiles(FileInfo file1, FileInfo file2)Compares two files for byte-for-byte equality.
bool CompareFiles(string file1, string file2)Compares two files for byte-for-byte equality.

bool CompareFiles(FileInfo file1, FileInfo file2) ​

csharp
bool CompareFiles(FileInfo file1, FileInfo file2)

Compares two files for byte-for-byte equality.

Parameters ​

NameDescription
file1The first file to compare.
file2The second file to compare.

Returns ​

if both files exist and have identical length and content; otherwise .

bool CompareFiles(string file1, string file2) ​

csharp
bool CompareFiles(string file1, string file2)

Compares two files for byte-for-byte equality.

Parameters ​

NameDescription
file1The path to the first file.
file2The path to the second file.

Returns ​

if both files exist and their contents are identical; otherwise .