Click or drag to resize
FileInfo Methods

The FileInfo type exposes the following members.

Methods
  NameDescription
Public methodCreate
Creates a file.
Public methodDelete
Permanently deletes a file.
(Overrides FileSystemInfoDelete.)
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodOpen(FileMode)
Opens a file in the specified mode.
Public methodOpen(FileMode, FileAccess)
Opens a file in the specified mode with read, write, or read/write access.
Public methodOpen(FileMode, FileAccess, FileShare)
Opens a file in the specified mode with read, write, or read/write access and the specified sharing option.
Public methodOpenRead
Creates a read-only FileStream.
Public methodOpenText
Creates a StreamReader with UTF8 encoding that reads from an existing text file.
Public methodOpenWrite
Creates a write-only FileStream.
Public methodRefresh
Refreshes the state of the object.
(Inherited from FileSystemInfo.)
Public methodToString
Returns the path as a string.
(Overrides ObjectToString.)
Top
See Also