string str=@"F:\Test\Codes\code.txt";int x=str.LastIndexOf("\\");string str1=str.substring(0,x);string str2=str.substring(x) 相关文章: