Related resources for FileInfo class
  • 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.
  • C# FileInfo Code Samples12/13/2019 7:11:45 AM. The C# FileInfo provides methods to work with files. In this article, you'll learn how to use FileInfo in C#.
  • 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.
  • Working With FileInfo In C#8/25/2019 8:52:28 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#6/16/2019 2:57:16 PM. C# Get File Size. Learn how to get a file size in bytes using C# using the FileInfo.Length property.
  • How to Get a File Extension in C#6/11/2019 10:48:25 AM. C# get file extension. FileInfo.Extension property returns the file extension in C#.
  • 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.
  • How to get directory of a file in C#7/14/2012 1:27:24 PM. How to get the directory name of a file in C# and .NET.
C# Language Specification 5.0
This book provides a complete description of the C# language 5.0.
Download