FileInfo.Create() : FileInfo « System.IO « C# / C Sharp by API






FileInfo.Create()

   


using System;
using System.IO;

public class MainClass
{
  static void Main(string[] args)
  {
    FileInfo MyFile = new FileInfo(@"c:\Projects\Testing.txt");

    MyFile.Create();
    MyFile.Delete();
  }
}

   
    
    
  








Related examples in the same category

1.new FileInfo(String fileName)
2.FileInfo.Attributes
3.FileInfo.CreationTime
4.FileInfo.CopyTo(String fileName)
5.FileInfo.Delete
6.FileInfo.Directory
7.FileInfo.FullName
8.FileInfo.LastAccessTime
9.FileInfo.MoveTo(String path)
10.FileInfo.Open
11.FileInfo.OpenRead
12.FileInfo.OpenText
13.FileInfo.OpenWrite()