FileInfo

Description

The FileInfo class implements an object, that is used to work with files.

Comments

Using given methods enables user to create, delete, move and change files, also to work with files attributes and parameters that are responsible for the time of creation, of change and of the last access to a file. It is recommended to use corresponding static method of the File class if only one operation is planned.

Constructors

  Constructor name Brief description
The Attach designer creates an object used to work with files and links it to a specified file.

Class object properties inherited from IFileInfo

  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.

Class object 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.

Class object methods inherited from IFileInfo

  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.

Class object methods inherited from IFileSystemInfo

  Method name Brief description
The Delete method deletes a file.

See also:

IO Assembly Classes