FileInfo class
8 posts about FileInfo class by 3 contributors.
Know FileInfo class? Share what you know with developers who are learning it.
- Articles
- 8
- Contributors
- 3
Articles about FileInfo class
- Article · Files, Directory, IO
Get File Extension in C#
Code sample on C# get file extension. FileInfo.Extension property returns the file extension in C#.
- Article · C#
C# FileInfo Code Samples
The C# FileInfo provides methods to work with files. In this article, you'll learn how to use FileInfo in C#.
- Article · Files, Directory, IO
Working With 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.
- Article · Files, Directory, IO
How to get a file size in C#
Learn how to get file size in C#. Sample code included.
- Article · Files, Directory, IO
How to get directory of a file in C#
How to get the directory name of a file in C# and .NET.
- Article · ASP.NET
List All Files in a Folder Based on File Extension in ASP.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.
- Article · Files, Directory, IO
Create a file using FileInfo in C#
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.
- Article · Files, Directory, IO
How to check if a file exists in C#
How to check if a file exists in C# and .NET. The Exists property of the FileInfo class returns true if a file exists.






