Path.GetFullPath(String fileName) : Path « System.IO « C# / C Sharp by API






Path.GetFullPath(String fileName)

 

using System;
using System.IO;

class MainClass {
    static void Main() {
        Console.WriteLine("Using: " + Directory.GetCurrentDirectory());
        Console.WriteLine("The relative path 'file.txt' " + "will automatically become: '" + Path.GetFullPath("file.txt") + "'");

    }
}

   
  








Related examples in the same category

1.Path.GetRandomFileName()
2.Path.GetTempFileName()