File : File : File Directory Stream C# Examples


C# Examples » File Directory Stream » File »

 

File









    
using  System;
using  System.Windows.Forms;
using  System.IO;

class  MainClass
{

    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));
        }

    }

}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» File