File¶
File.
FileObject.Version |
Returns file version. |
FileObject.ModifiedTime |
File or directory modification time. |
FileObject.ReadContent (Integer) |
Reads binary data from specified part of the file and returns the value encoded in string. |
FileObject.ReadContent (Integer, Integer) |
Reads binary data from specified part of the file and returns the value encoded in string. |
FileObject.AppendContent (String) |
Appends binary data encoded in string to the end of the File. |
FileObject.SplitIntoChars |
Split a string into collection of individual characters. |
FileObject.ReplaceLine (String, String) |
Returns a new string in which all lines containing specified string are replaced with another specified string. |
FileObject.Ext |
Ext. |
FileObject.Prepend (String) |
Prepend. |
FileObject.Prepend (String, String) |
Prepend. |
FileObject.OpenInExplorer |
OpenInExplorer. |
FileObject.Zip (String) |
Zip a file. |
FileObject.Tokenize |
Tokenizes a string. |
FileObject.Tokenize (String) |
Tokenizes a string. |
FileObject.Contains (String) |
Returns a value indicating whether the specified object occurs within this object. |
FileObject.AppendLine |
Appends a copy of the specified string followed by the default line terminator to the end of the current File or StringBuilder object. |
FileObject.AppendLine (String) |
Appends a copy of the specified string followed by the default line terminator to the end of the current File or StringBuilder object. |
FileObject.AppendLine (String, String) |
Appends a copy of the specified string followed by the default line terminator to the end of the current File or StringBuilder object. |
FileObject.PrependLine |
Prepends a copy of the specified string followed by the default line terminator to the beginning of the current File or StringBuilder object. |
FileObject.PrependLine (String) |
Prepends a copy of the specified string followed by the default line terminator to the beginning of the current File or StringBuilder object. |
FileObject.PrependLine (String, String) |
Prepends a copy of the specified string followed by the default line terminator to the beginning of the current File or StringBuilder object. |
FileObject.NameWithoutExtension |
Returns the file name without it’s file extension. |
FileObject.FullName |
Gets the full path of the directory or file. |
FileObject.MoveTo (String) |
Moves a file or directory to a new path. |
FileObject.Sha512 |
Returns the result of Sha512 hash value string of the object. |
FileObject.Sha512 (Integer) |
Returns the result of Sha512 hash value string of the object. |
FileObject.Rename (String) |
Renames a file or directory. |
FileObject.Name |
Returns the object’s Name. |
FileObject.Sha256 |
Returns the result of Sha256 hash value string of the object. |
FileObject.Sha256 (Integer) |
Returns the result of Sha256 hash value string of the object. |
FileObject.SplitIntoLines |
SplitIntoLines. |
FileObject.SplitIntoLines (String) |
SplitIntoLines. |
FileObject.Length |
Reports the object’s length. |
FileObject.Replace (String, String) |
Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string. |
FileObject.Append (String) |
Appends a copy of the specified string to the end of the current File or StringBuilder object. |
FileObject.Append (String, String) |
Appends a copy of the specified string to the end of the current File or StringBuilder object. |
FileObject.Copy (String) |
Copy the object to the specified place. |
FileObject.Delete |
Delete a file or folder. |
FileObject.Directory |
Identifies a directory or the start point for directory operations. |
FileObject.Exists |
Determines whether the specified file or directory exists. |
FileObject.Exists (String) |
Determines whether the specified file or directory exists. |
FileObject.Unzip (String) |
Unzip a file, requiring 7zip. |
FileObject.Sha1 |
Returns the result of Sha1 hash value string of the object. |
FileObject.Sha1 (Integer) |
Returns the result of Sha1 hash value string of the object. |
FileObject.MD5 |
Returns the result of MD5 hash value string of the object. |
FileObject.MD5 (Integer) |
Returns the result of MD5 hash value string of the object. |
FileObject.Write (String) |
Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten. |
FileObject.Write (String, String) |
Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten. |
FileObject.Read (String) |
Opens a file, reads all lines of the file with the specified encoding, and then closes the file. |
FileObject.Load |
Loads the content of a file, by default it’s UTF8 text file. |