using System;
using System.Windows.Forms;
publicclass MainClass
{
[STAThread]
publicstaticvoid Main()
{
OpenFileDialog dlgOpen = new OpenFileDialog();
dlgOpen.Title = "Select one or more files";
dlgOpen.ShowReadOnly = true;
dlgOpen.Multiselect = true;
if (dlgOpen.ShowDialog() == DialogResult.OK)
{
foreach (string s in dlgOpen.FileNames)
Console.WriteLine(s);
}
}
}