C# Tutorials - Herong's Tutorial Examples - Version 3.2, by Dr. Herong Yang

System.IO.FileInfo Class

This chapter provides tutorials and notes on System.IO.FileInfo class provided by .NET Framework. Topics include introduction to FileInfo; creating FileInfo objects; retrieving file information; managing files.

What Is FileInfo?

Public Properties and Methods of FileInfo Class

Creating FileInfo Objects

FileVersionCopyFile.cs - Testing CopyTo() Method


  • System.IO.FileInfo is a .NET Framework class that be used to retreive file information and manage files in a file system.
  • Constructor method FileInfo(fileName) should be used to create a FileInfo object representing the specified file.

Table of Contents

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

 Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

 Memory Usages of Processes

 Multithreading in C#

System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class


 PDF Printing Version

System.IO.FileInfo Class - Updated in 2012, by Dr. Herong Yang