using System;
using System.Windows.Forms;
using System.IO;
public class MainClass
{
[STAThread]
public static void 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));
}
}
}
|