Show contents 

IO > IO Assembly Interfaces > IFileInfo

IFileInfo

Assembly: IO;

Description

The IFileInfo interface contains properties and methods that are used to work with files.

Inheritance Hierarchy

          IFileSystemInfo

          IFileInfo

Properties

  Property name

Brief description
Directory

The Directory property returns description of the directory, in which a file is located.
DirectoryName

The DirectoryName property returns the full path and name of the directory, in which a file is located.
Size

The Size property returns a file size (up to 2 Gb) in bytes.
SizeEx

The Size property returns a file size in bytes.

Properties inherited from IFileSystemInfo

  Property name Brief description
Attributes

The Attributes property determines file attributes.
CreationTime

The CreationTime property determines date and time of file creation.
Exists

The Exists property returns whether a file exists.
Extension

The Extension property returns a file extension including ".".
FullName

The FullName property returns a full path and a file name.
LastAccessTime

The LastAccessTime property determines date and time of the last file opening.
LastWriteTime

The LastWriteTime property determines date and time of the last file edit.
Name

The Name property returns file name.

Methods

  Method name Brief description
AppendBinary

The AppendBinary method opens a file for writing in a binary format and puts a cursor to the end of a file.
AppendText

The AppendText method opens a file for writing in a text format and puts a cursor to the end of a file.
CopyTo

The CopyTo method copies a file to a directory.
MoveTo

The MoveTo method moves a file to a directory.
Open

The Open method opens a file with a specific query of file opening and parameters of shared access.
OpenBinaryReader

The OpenBinaryReader method opens a file for reading in a binary format.
OpenBinaryWriter

The OpenBinaryWriter method opens a file for writing in a binary format and puts a cursor to the beginning of a file.
OpenTextReader

The OpenTextReader method opens a file for reading in a text format.
OpenTextWriter

The OpenTextWriter method opens a file for writing in a text format and puts a cursor to the beginning of a file.

Methods inherited from IFileSystemInfo

  Method name Brief description
Delete

The Delete method deletes a file.

See also:

IO Assembly Interfaces