C#选择文件
OpenFileDialog fileDialog = new OpenFileDialog();
= "C://";
= "txt files (*.txt)|*.txt|All files (*.*)|*.*";
= 1;
= true;
if (() == )
{
this. = ;
}
C#选择文件夹
string path = ""; FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); = false; if (() == ) { path = ; } else { } this. = path;
得到文件夹下文件目录
string[] dataFiles = (path);