C# Program to Demonstrate the Use of FullName Property Last Updated : 01 Feb, 2022 Comments Improve Suggest changes Like Article Like Report DirectoryInfo class provides different types of methods and properties that are used to perform operations on directories and sub-directories like creating, moving, etc and FullName property is one of them. This property is used to find the full path of the directory or the specified file. Syntax: public virtual string FullName { get; } Return: It will return a string that contains the full path of the current directory or file. Exception: This property will throw the following exceptions: PathTooLongException: This exception will occur when the path and the file name exceed the system-defined maximum length.SecurityException: This exception will occur when the caller doesn't have enough permissions.Example: C# // C# program to demonstrate the use of // FullName property using System; using System.IO; class GFG{ static void Main() { // Creating a object which contain the // name of the directory DirectoryInfo full_name = new DirectoryInfo("vignan"); Console.WriteLine("FullName"); // Finding the full path of the directory // Using FullName property Console.WriteLine(full_name.FullName); } } Output: FullName /home/cg/root/8057718/vignan Comment More infoAdvertise with us Next Article C Program To Find Initials of a Name S sravankumar_171fa07058 Follow Improve Article Tags : C# C# Programs Similar Reads C Program To Find Initials of a Name Here, we will see how to find the initials of a name using a C program. Below are the examples: Input: Geeks for GeeksOutput: G F GWe take the first letter of allwords and print in capital letter. Input: Jude LawOutput: J L Approach: Print the first character in the capital. Traverse the rest of the 2 min read C# Program to Get the Machine Name or Host Name Using Environment Class Environment Class provides information about the current platform and manipulates, the current platform. It is useful for getting and setting various operating system-related information. We can use it in such a way that retrieves command-line arguments information, exit codes information, environme 1 min read C Program to Print the First Letter of Each Word In a string that contains multiple words, each word is separated by a whitespace. In this article, we will learn how to print the first letter of each word using a C program.The simplest method to print the first letter of each word is by using a loop. Letâs take a look at an example:C#include <s 3 min read C Program to Compare Two Strings Using Pointers In C, two strings are generally compared character by character in lexicographical order (alphabetical order). In this article, we will learn how to compare two strings using pointers.To compare two strings using pointers, increment the pointers to traverse through each character of the strings whil 2 min read C Program To Print Your Own Name Printing your own name means displaying your name on the computer screen. In this article, we will learn how to print your own name using a C program.ExamplesInput: name = "Rahul"Output: RahulExplanation: The program prints "Rahul" to the screen.Input: name = "Vikas"Output: VikasExplanation: The pro 3 min read C++ Program to Print Your Own Name Printing your own name means displaying your name on the computer screen. In this article, we will learn how to print your own name using a C++ program.ExamplesInput: name = "Anmol"Output: AnmolExplanation: Given name is printed on the output screen.Input: name = "Alex"Output: AlexExplanation: Given 3 min read Like