![]() Return false to indicate files are different Return true to indicate that the files are the same.įs1 = new FileStream(file1, FileMode.Open) įs2 = new FileStream(file2, FileMode.Open) Determine if the same file was referenced two times. Private bool FileCompare(string file1, string file2) ![]() A return value of any other value indicates that the A return value of 0 indicates that the contents of the files By default, Form1 is created.Īdd the following using statement to the Form1 class: using System.IO Īdd the following method to the Form1 class: // This method accepts two strings the represent two files to ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |