Commondialog控件打开几个文件,怎么将文件的完整路径保存在数组中
我用commomdialog同时选择几个txt文件,后面需要利用文件路径读取txt中的数据,怎么才能将文件路径保存在数组中呢,希望高手解答
程序代码:
Dim s As String s = "" OpenF.Multiselect = True OpenF.ShowDialog() If Not (OpenF.FileNames Is Nothing) Then Dim i As Integer For i = 0 To OpenF.FileNames.Length - 1 s = s + OpenF.FileNames(i) Next i End If Label1.Text = s