new FileInfo(String fileName) : FileInfo « System.IO « C# / C Sharp by API






new FileInfo(String fileName)

  

using System;
using System.IO;

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

    MyFile.Create();
  }
}

   
    
  








Related examples in the same category

1.FileInfo.Attributes
2.FileInfo.Create()
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()