Click or drag to resize
FileInfo Class
Provides instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
Inheritance Hierarchy

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 12.0.0
Syntax
C#
public abstract class FileInfo

The FileInfo type exposes the following members.

Constructors
  NameDescription
Protected methodFileInfo
Creates new instance of FileInfo object.
Top
Fields
  NameDescription
Protected fieldmSystemInfo
System.IO file info object corresponding to this file
Top
Properties
  NameDescription
Public propertyAttributes
File attributes.
Public propertyCreationTime
Creation date of file.
Public propertyDirectory
Directory of file.
Public propertyDirectoryName
Directory name of file (without path).
Public propertyExists
If file exists.
Public propertyExtension
File extension.
Public propertyFullName
Full name of file (with whole path).
Public propertyIsReadOnly
If is read only.
Public propertyLastAccessTime
Last access time of file.
Public propertyLastWriteTime
Last write time to file.
Public propertyLength
Length of file.
Public propertyName
File name of file (without path).
Public propertySystemInfo
System.IO file info object corresponding to this file
Top
Methods
  NameDescription
Public methodCopyTo(String)
Copies current file to destination.
Public methodCopyTo(String, Boolean)
Copies current file to destination.
Protected methodCopyToInternal
Copies an existing file to a new file, allowing the overwriting of an existing file.
Public methodCreateText
Creates or opens a file for writing UTF-8 encoded text.
Protected methodCreateTextInternal
Creates or opens a file for writing UTF-8 encoded text.
Public methodDelete
Deletes file.
Protected methodDeleteInternal
Deletes file.
Public methodMoveTo
Moves an existing file to a new file.
Protected methodMoveToInternal
Moves an existing file to a new file.
Public methodStatic memberNew
Initializes new instance of file info object.
Public methodOpenRead
Creates a read-only ICMSFileStream.
Protected methodOpenReadInternal
Creates a read-only FileStream.
Public methodOpenText
Creates a StreamReader with UTF8 encoding that reads from an existing text file.
Protected methodOpenTextInternal
Creates a StreamReader with UTF8 encoding that reads from an existing text file.
Top
See Also