摘要:
File类使用 1.0 代码示例 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; 阅读全文
posted @ 2022-04-02 16:02
Chris丶Woo
阅读(34)
评论(0)
推荐(0)
摘要:
Path类的使用 1.0、原始获取文件名的方法 int index = fileName.LastIndexOf("\"); string name = fileName.Substring(index + 1); Console.WriteLine(name); 1.4 根据Path类获取文件路径 阅读全文
posted @ 2022-04-02 15:46
Chris丶Woo
阅读(67)
评论(0)
推荐(0)