Related resources for FileInfo class
  • Get File Extension in C#10/10/2023 9:42:53 AM. Code sample on C# get file extension. FileInfo.Extension property returns the file extension in C#.
  • C# FileInfo Code Samples8/21/2023 11:11:04 AM. The C# FileInfo provides methods to work with files. In this article, you'll learn how to use FileInfo in C#.
  • Working With FileInfo In C#2/23/2023 1:51:43 PM. 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.
  • How to get a file size in C#2/23/2023 7:00:15 AM. Learn how to get file size in C#. Sample code included.
  • How to get directory of a file in C#2/21/2023 11:46:12 PM. How to get the directory name of a file in C# and .NET.
  • List All Files in a Folder Based on File Extension in ASP.NET2/10/2021 10:20:58 AM. This is a very simple article on how to search and list all the files in a folder based on the file extension provided.
  • Playing With File I/O Using C#8/28/2019 11:51:30 PM. In this article, you will learn about the basics of File I/O using C#. We are going to discuss the 3 classes - Path, Directory & File - to work with the file-system.
  • Create a file using FileInfo in C#1/16/2019 8:43:59 AM. 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 is read only in C#12/20/2018 12:50:51 AM. How to check if a file is read only in C#. The IsReadOnly property of the FileInfo class returns if a file is read only.
  • How to check if a file exists in C#12/20/2018 12:07:32 AM. How to check if a file exists in C# and .NET. The Exists property of the FileInfo class returns true if a file exists.
  • File I/O Using C#1/11/2014 1:56:01 PM. In this article, you will learn how to work with classes in the System.IO namespace for reading data from and writing data to files.