Code:
DirectoryInfo[] d2 = new DirectoryInfo[400];
d2 = moreDirect.GetDirectories();
//Declaring FileInfo array
FileInfo[] f = new FileInfo[300];
f = d2[z].GetFiles();
if (d2[z].Exists)
{
if (f[y] != null)
{
...
//FileInfo does it stuff and somewhere it does ++y depending on the situation blahblahblah
if (f[y] == null) <-------- Right here is where it does it! And y only equals 1 here. I checked.
{
y = 0;
fileTime = false;
break;
}
So, does anyone know what is going wrong? I have racked my brain. I have googled, I have stack overflow searched. It has to be something silly. I have no idea.