Click or drag to resize

File Methods

The File type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAppendText Creates a StreamWriter that appends UTF-8 encoded text to an existing file.
Public methodStatic memberCopy(String, String) Copies an existing file to a new file.
Public methodStatic memberCopy(String, String, Boolean) Copies an existing file to a new file where overwrite can be specified.
Public methodStatic memberCreate Creates or overwrites a file in the specified path.
Public methodStatic memberCreateText Creates or opens a file for writing UTF-8 encoded text.
Public methodStatic memberDelete Delete the specified file.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberExists Determines if the specified file exists on the system.
Public methodStatic memberGetCreationTime Returns the data and time the specified file was created.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetLastAccessTime Returns the data and time the specified file was last accessed.
Public methodStatic memberGetLastWriteTime Returns the data and time the specified file was last written to.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberMove Moves the specified file to the destination location.
Public methodStatic memberOpen(String, FileMode) Opens a CrestronIO.FileStream on the specified path with read/write access.
Public methodStatic memberOpen(String, FileMode, FileAccess) Opens a CrestronIO.FileStream on the specified path, with the specified mode and access.
Public methodStatic memberOpen(String, FileMode, FileAccess, FileShare) Opens a CrestronIO.FileStream on the specified path, having the specified mode with read, write, or read/write access and the specified sharing option.
Public methodStatic memberOpenRead Opens an existing file for reading.
Public methodStatic memberOpenText Opens an existing UTF-8 encoded text file for reading.
Public methodStatic memberOpenWrite Opens an existing file for writing.
Public methodStatic memberReadToEnd Function to Read an entire file and return it as a string
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also