遍历某文件夹下的所有文件 C#

.

            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                string path = folderBrowserDialog1.SelectedPath;
                DirectoryInfo dir = new DirectoryInfo(path);
                FileInfo[] files = dir.GetFiles();
                for (int i = 0; i < files.Length; i++)
                {
		}
	   }

你可能感兴趣的:(String,C#,Path)