// FileCreate.cpp : メイン プロジェクト ファイルです。 #include "stdafx.h" using namespace System; using namespace System::IO; int main(array ^args) { String^ path = "C:\\MyFolder\\Homepage\\public_html\\Cprpr\\CreateFile\\FileCreate.cpp"; // Create the file. FileStream^ fs = File::Create(path); Console::WriteLine("ファイルを作成しました。"); return 0; }