I have to store the files of a directory in an array and then traverse that array.
System.IO.DriveInfo dirOrigen = new System.IO.DriveInfo(ruta1);
System.IO.DirectoryInfo dirOrigenInfo = dirOrigen.RootDirectory;
System.IO.FileInfo[] fileDirOrigenNames = dirOrigenInfo.GetFiles("*.*");
for (int i=0;i<fileDirOrigenNames.GetLength;i++ )
{
...
}
At the moment I have this code, I get an error in for
with fileDirOrigenNames.GetLength