DXCore Services – File
February 19th, 2011
File service provides methods for file reading, writing, and editing.
Methods of this service:
Name |
Description |
Activate | Activates the code view of the specified file name. If the code view is not available, it is opened. |
ActivateHtmlView | Activates the HTML view of the specified file name. If the HTML view is not available, the code file is opened. |
ApplyChanges | Applies the specified file changes collection, replaces the text in several files. |
ChangeFile | Sets the text in the given ranges to the specified text. This can be used to delete, replace or insert text. |
IsOpen | Returns true if the specified file is open in any kind of view (e.g., code view, design view). |
ReadTextFile | Reads the contents of a text file and returns them in a StringCollection or as an array of strings (another overload). |
WriteTextFile | Writes the contents of a string array or a StringCollection to a text file. |
Properties:
Name |
Description |
Active | Returns the file name of the active document. |