C#根據文件路徑獲取該文件夾路徑、文件名、後綴名

                string filename = System.IO.Path.GetFileName(address);//文件名  「Default.aspx」                 string extension = System.IO.Path.GetExtension(address);//擴展名 「.aspx」                 string
相關文章
相關標籤/搜索