Home » .Net » C# programs

C# - DirectoryInfo class solved programs/Examples

This section contains solved programs based on C# DirectoryInfo class, its methods, properties etc with outputs and explanations.

List of C# DirectoryInfo class examples/programs

  1. C# program to get extension of a given file.
    In this article, we will learn how to get extension of file using Extension property? Here we will use class DirectoryInfo.
  2. C# program to demonstrate the use of FullName property.
    In this article, we will learn how to get complete path using FullName property? Here we will use class DirectoryInfo.
  3. C# program to demonstrate the use of Exists property.
    In this article, we will learn how to check a directory is exist or not using Exists property? Here we will use class DirectoryInfo.
  4. C# program to demonstrate the use of CreateSubdirectory method.
    In this article, we will learn how to create a sub-directory? Here we will use class DirectoryInfo to create sub-directory using method CreateSubdirectory.





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.