C#中获取文件信息

From , 5 Years ago, written in C#, viewed 207 times.
URL https://pastebin.vip/view/c2138774
  1. FileInfo fi = new FileInfo(@"C:\file.txt");
  2.  
  3. if(fi.Exists)
  4. {
  5.         Console.WriteLine("Filename : {0}", fi.Name);
  6.         Console.WriteLine("Path : {0}", fi.FullName);
  7. }

Reply to "C#中获取文件信息"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website