Determine if Two Files are Identical (VB.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic.NET, ASP.NET

More information:
This function takes the full path to two files and returns true if they are identical, false otherwise. Works for both text and binary files.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: