[About] Version=1.0 Author=Nic Mail=support@hiasm.com [Type] Class=Element Inherit=FileSystemInfo Info=Provides properties and instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. [Property] FileName=Sets the name of the file to operate. Do not end the path with the directory separator character. ARG(string)|2| Destination=Sets the destination name of the file to operate. ARG(string)|2| Backup=Sets the name of a file with which to create a backup of the file described by the destination parameter. ARG(string)|2| Mode=Sets a FileMode constant specifying the mode in which to open the file. ARG(FileMode)|14|0|CreateNew,Create,Open,OpenOrCreate,Truncate,Append Overwrite=Sets a value indicating whether to allow an existing file to be overwritten. ARG(bool)|14|1|true,false IgnoreErrors=Sets a value indicating whether to ignore merge errors (such as attributes and ACLs) from the replaced file to the replacement file. ARG(bool)|14|1|true,false @IsReadOnly=Sets a value that determines if the current file is read only. ARG(bool)|14|1|true,false [Methods] *doConstructor=Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path. ARG(string fileName)|1|0 *doCopyTo=Copies an existing file to a new file, disallowing the overwriting of an existing file. ARG(string destination)|1|0 *doCopyTo2=Copies an existing file to a new file, allowing the overwriting of an existing file. ARG(string destination, bool overwrite)|1|0 *doDecrypt=Decrypts a file that was encrypted by the current account using the Encrypt method. ARG()|1|0 *doDelete=Permanently deletes a file. ARG()|1|0 *doEncrypt=Encrypts a file so that only the account used to encrypt the file can decrypt it. ARG()|1|0 *doGetAccessControl2=Gets a FileSecurity object that encapsulates the specified type of access control list entries for the file described by the current FileInfo object. ARG(AccessControlSections sections)|1|0 *doMoveTo=Moves a specified file to a new location, providing the option to specify a new file name. ARG(string destination)|1|0 doOpen=Opens a file in the specified mode. ARG(FileMode mode)|1|0 *doOpen2=Opens a file in the specified mode with read, write, or read/write access. ARG(FileMode mode, FileAccess access)|1|0 *doOpen3=Opens a file in the specified mode with read, write, or read/write access and the specified sharing option. ARG(FileMode mode, FileAccess access, FileShare share)|1|0 *doReplace=Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. ARG(string destination, string backup)|1|0 *doReplace2=Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors. ARG(string destination, string backup, bool ignoreErrors)|1|0 *doSetAccessControl=Applies access control list entries described by a FileSecurity object to the file described by the current FileInfo object. ARG(FileSecurity security)|1|0 *onCopyTo=Occurs after invoke the method doCopyTo and returns the result. ARG(FileInfo)|2|0 *onGetAccessControl=Occurs after invoke the method doGetAccessControl and returns the result. ARG(FileSecurity)|2|0 onOpen=Occurs after invoke the method doOpen and returns the result. ARG(FileStream)|2|0 onError=If an error occurs, an error message appears. ARG(string)|2|2 *onReplace=Occurs after invoke the method doReplace and returns the result. ARG(FileInfo)|2|0 *AppendText=Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo. ARG(StreamWriter)|3|0 *Create=Creates a file. ARG(FileStream)|3|0 *CreateText=Creates a StreamWriter that writes a new text file. ARG(StreamWriter)|3|0 *Directory=Returns an instance of the parent directory. ARG(DirectoryInfo)|3|0 *DirectoryName=Returns a string representing the directory's full path. ARG(string)|3|2 *Exists=Returns a value indicating whether a file exists. ARG(bool)|3|104 *GetAccessControl=Gets a FileSecurity object that encapsulates the access control list entries for the file described by the current FileInfo object. ARG(FileSecurity)|3|0 *IsReadOnly=Returns a value that determines if the current file is read only. ARG(bool)|3|104 *Length=Returns the size, in bytes, of the current file. ARG(long)|3|105 *Name=Returns the name of the file. ARG(string)|3|2 *OpenRead=Creates a read-only FileStream. ARG(FileStream)|3|0 *OpenText=Creates a StreamReader with UTF8 encoding that reads from an existing text file. ARG(StreamReader)|3|0 *OpenWrite=Creates a write-only FileStream. ARG(FileStream)|3|0 *ToString=Returns the path as a string. ARG(string)|3|2 FileInfo=Returns the FileInfo object. ARG(FileInfo)|3|0 *Access=Defines a FileAccess constant specifying whether to open the file with Read, Write, or ReadWrite file access. ARG(FileAccess)|4|0 *Destination=Defines the destination name of the file to operate. ARG(string)|4|2 *Backup=Defines the name of a file with which to create a backup of the file described by the destination parameter. ARG(string)|4|2 FileName=Defines the name of the file to operate. ARG(string)|4|2 *Security=Defines a FileSecurity object that describes an access control list (ACL) entry to apply to the current file. ARG(FileSecurity)|4|0 *IgnoreErrors=Defines a value indicating whether to ignore merge errors (such as attributes and ACLs) from the replaced file to the replacement file. ARG(bool)|4|104 *Sections=One of the AccessControlSections values that specifies which group of access control entries to retrieve. ARG(AccessControlSections)|4|0 Mode=Defines a FileMode constant specifying the mode (for example, Open or Append) in which to open the file. ARG(FileMode)|4|0 *Overwrite=Defines a value indicating whether to allow an existing file to be overwritten. ARG(bool)|4|104 *Share=Defines a FileShare constant specifying the type of access other FileStream objects have to this file. ARG(FileShare)|4|0