Get full path for a file under current folder in CSharp
Description
The following code shows how to get full path for a file under current folder.
Example
/*from w ww .j a v a2 s. co m*/
using System;
using System.IO;
static class MainClass
{
static void Main()
{
Console.WriteLine("The relative path 'file.txt' " + Path.GetFullPath("file.txt"));
}
}
The code above generates the following result.