Appearance
CompareFiles Method
Definition
- Namespace:
JASE.IO - Assembly:
JASE.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
file1 | The first file to compare. |
file2 | The 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
| Name | Description |
|---|---|
file1 | The path to the first file. |
file2 | The path to the second file. |
Returns
if both files exist and their contents are identical; otherwise .