1. 用打开文件对话框浏览文件,获取文件路径 this.openFileDialog1.ShowDialog(); string inPath = openFileDialog1.FileName; 2. next,,,