IFileInfo

Assembly: IO;

Namespace: Prognoz.Platform.Interop.ForeIO;

Description

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

Inheritance hierarchy

          IFileSystemInfo

          IFileInfo

Properties

  Brief description
The Directory property returns a description of a directory in which a file is located.
The DirectoryName property returns a full path and a name of directory in which a file is located.
The Size property returns a file size (up to 2 Gb) in bytes.
The Size property returns a file size in bytes.

Properties inherited from IFileSystemInfo

  Property name Brief description
The Attributes property determines file attributes.
The CreationTime property determines date and time of a file creation.
The Exists property returns whether a file exists.
The Extension property returns a file extension including ".".
The FullName property returns a full path and a file name.
The LastAccessTime property determines date and time of the last file opening.
The LastWriteTime property determines date and time of the last file edit.
The Name property returns a file name.

Methods

  Method name Brief description
The AppendBinary method opens a file for writing in a binary format and sets a cursor to the end of a file.
The AppendText method opens a file for writing in a text format and sets a cursor to the end of a file.
The CopyTo method copies a file to a directory.
The MoveTo method moves a file to a directory.
The Open method opens a file with a specific query of file opening and parameters of shared access.
The OpenBinaryReader method opens a file for reading in a binary format.
The OpenBinaryWriter method opens a file for writing in a binary format and sets a cursor to the beginning of a file.
The OpenTextReader method opens a file for reading in a text format.
The OpenTextWriter method opens a file for writing in a text format and sets a cursor to the beginning of a file.

Methods inherited from IFileSystemInfo

  Method name Brief description
The Delete method deletes a file.

See also:

IO Assembly Interfaces