File FileInfo


1. File

     File.Exists(path)

  File.Delete(path)

    File.Create(path)

     File.Move(path1,path2)

    File.Copy(path1,path2,true)

2. FileInfo

   FileInfo fileInfo = new FileInfo(path)

  .CreationTime

  .Extension(例如:.txt)

  .FullName(例如:C:\1.txt)

  .name(例如:1.txt)

C