using System;
using System.IO;
class Test
{
    public static void Main()
    {
        string path1 = @"c:\temp\MyTest.txt";
        string path2 = @"c:\temp\MyTest";
        string path3 = @"temp";
        if (Path.HasExtension(path1))
        {
            Console.WriteLine("{0} ·аչ", path1);
        }
        if (!Path.HasExtension(path2))
        {
            Console.WriteLine("{0} ·вչ", path2);
        }
        if (!Path.IsPathRooted(path3))
        {
            Console.WriteLine("{0}·вϢ", path3);
        }
        Console.WriteLine("{0}·{1}", path3, Path.GetFullPath(path3));
        Console.WriteLine("{0} ǱصʱļĿ¼", Path.GetTempPath());
        Console.WriteLine("{0} ǿõļ", Path.GetTempFileName());
        Console.ReadLine();
       
    }
}
