I want to check filename and its associated filesize with the help of a foreach loop. So I have the below 2 string arrays containing file name and file size:

```
string[] file_name = {
    "file1.dll",
    "file2.dll"
};
string[] file_size = {
    "17662", //file1.dll size
    "19019" //file2.dll size
};

```

And with below foreach loops I am checking the file and size are matching

```
foreach (string filename in file_name)
        {
            foreach (string filesize in file_size)
            {
                if (File.Exists(Directory.GetCurrentDirectory() + "\\dll\\" + filename))
                {
                    FileInfo f = new FileInfo(Directory.GetCurrentDirectory() + "\\dll\\" + filename);
                    string s1 = f.Length.ToString();
                    if (s1 != filesize)
                    {
                        MessageBox.Show(f.Name + "modified DLL file, please change it to original");
                    }
                }
            }
        }

```

But it always shows the message, I don't know where is the error.