using System;
using System.IO;
public class MainClass
{
public static int Main(string[] args)
{
FileInfo f = new FileInfo(@"C:\Test.txt");
FileStream fs = f.Create();
Console.WriteLine("Creation: {0}", f.CreationTime);
Console.WriteLine("Full name: {0}", f.FullName);
Console.WriteLine("Full atts: {0}", f.Attributes.ToString());
fs.Close();
f.Delete();
return 0;
}
}
|