8 posts about FileInfo class by 3 contributors.
Know FileInfo class? Share what you know with developers who are learning it.
Code sample on C# get file extension. FileInfo.Extension property returns the file extension in C#.
The C# FileInfo provides methods to work with files. In this article, you'll learn how to use FileInfo in C#.
C# FileInfo class provides functionality to work with files. This article will explain how to use a FileInfo class in C# to work with files and folders.
Learn how to get file size in C#. Sample code included.
How to get the directory name of a file in C# and .NET.
This is a very simple article on how to search and list all the files in a folder based on the file extension provided.
Code sample to show how to create a file in C# and get a file attributes such as file creation time, file size, file last updated, file last accessed, and file last write time.
How to check if a file exists in C# and .NET. The Exists property of the FileInfo class returns true if a file exists.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article