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)

posted @ 2021-12-13 17:15  _jwj  阅读(67)  评论(0编辑  收藏  举报