#include "stdafx.h"
using namespace System;
using namespace System::IO;
using namespace System::Text;
int main(array ^args)
{
FileInfo ^fileinfo = gcnew FileInfo("c:\\a.txt");
if (!fileinfo->Exists)
{
Console::WriteLine("File Not Found");
return -1;
}
}