using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileApplication
{
class Program
{
static void Main(string[] args)
{
FileInfo f = new FileInfo("D:\\info.txt");
Console.WriteLine("Name: {0}", f.Name);
Console.WriteLine("Creation Time: {0}", f.CreationTime);
Console.WriteLine("Size(bytes): {0}", f.Length);
Console.ReadLine();
}
}
}
Comments
Leave a comment