Creating Files : File Create « File Directory Stream « C# / CSharp Tutorial






using System;
using System.IO;

public class MainClass
{
  public static void Main()
  {
    FileInfo MyFile = new FileInfo(@"c:\Test.txt");

    MyFile.Create();
  }
}








15.2.File Create
15.2.1.Creating Files
15.2.2.Create a file and get its creation time, full name and Attributes
15.2.3.Create text file using File.CreateText