C# FileInfo FullName
Description
FileInfo FullName
Gets the full path of the directory
or file.
Syntax
FileInfo.FullName
has the following syntax.
public virtual string FullName { get; }
Example
Gets the full path of the directory or file.
using System;/* w ww . j a v a 2 s . com*/
using System.IO;
public class DirectoryTest
{
public static void Main()
{
FileInfo fi = new FileInfo("temp.txt");
Console.WriteLine(fi.FullName);
}
}
The code above generates the following result.