MS/C#
파일 이름 빼내기
Lㅓ부ㄹI
2009. 1. 24. 19:55
static void Main(string[] args) { string temp = @"c:TextDirtest.txt"; string test = temp.Substring((temp.LastIndexOf('\')),(temp.Length-temp.LastIndexOf('\'))); Console.WriteLine(test); }