using System;
using System.Windows.Forms;
using System.IO;
class MainClass
{
publicstaticvoid Main()
{
OpenFileDialog dlgOpen = new OpenFileDialog();
if (dlgOpen.ShowDialog() == DialogResult.OK)
{
string s = dlgOpen.FileName;
Console.WriteLine("Filename " + s);
Console.WriteLine(" Created at " + File.GetCreationTime(s));
Console.WriteLine(" Accessed at " + File.GetLastAccessTime(s));
}
}
}