#include "stdafx.h"
using namespace System;
using namespace System::IO;
using namespace System::Text;
int main(array<System::String ^> ^args)
{
FileInfo ^fileinfo = gcnew FileInfo("c:\\a.txt");
Console::WriteLine("Created: {0} {1}",
fileinfo->CreationTime.ToShortDateString(),
fileinfo->CreationTime.ToLongTimeString());
}
|