读取xml中的所有文件名

void FindFile(Directory d)

{

       FileOrFolders = d.GetFileOrFolders();

       foreach(FileOrFolders fof in FileOrFolders)

      {

            if(for is File)

          {

                you found a File;

           }

            else if(for is Directory)

          {

              FildFile(fof);

          }

        }

}

你可能感兴趣的:(读取xml)