Get File creation time in CSharp
Description
The following code shows how to get File creation time.
Example
//from www .j a v a 2s . co m
using System;
using System.IO;
class MainClass
{
public static void Main()
{
string s = "Main.cs";
Console.WriteLine("Filename " + s);
Console.WriteLine(" Created at " + File.GetCreationTime(s));
}
}
The code above generates the following result.