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

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

Conclusions:

  • 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

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2012
System.IO.FileInfo Class