[问]C# 截取字符串问题!
C# 截取字符串问题!例如:c:\documents and settings\my documents\my pictures\name1.bmp
c:\documents and settings\my documents\my pictures\name2.jpg
如何单独取出name1.bmp或者name2.jpg
(string path);
ar = path.Split("\"); string fileName = ar[ar.Length - 1];