파일 이름 빼내기

|

        static void Main(string[] args)
        {
            string temp = @"c:TextDirtest.txt";
            string test = temp.Substring((temp.LastIndexOf('\')),(temp.Length-temp.LastIndexOf('\')));
            Console.WriteLine(test);
        } 

And