Command: FileOpen
- Updated2023-02-21
- 2 minute(s) read
Command: FileOpen
Opens ASCII files for reading or writing.
Input Parameters
FileName |
Specifies the file name. |
FileMode |
Specifies whether you write into a new ASCII file, extend the contents of an existing ASCII file, or read from an existing file. |
| Note If you do not specify a path, DIAdem searches for or creates ASCII files in the SCRIPT user folder. |
| Note Use the TextFileOpen function to open text files. Use the TextFileClose function to close text files. These functions also support long text and Unicode characters. |
Example
The following example creates the Text.asc ASCII file and opens the file for writing.
| VBScript | Python |
Call FileOpen(DataReadPath & "Text.asc",0)
Related Topics
Command: DataFileDelete | Command: DataFileLstGet | Command: DataFileMove | Command: DataFileRename | Command: DirLstWrite | Command: ExecuteExclusiveBegin | Command: ExecuteExclusiveEnd | Command: ExecuteExclusiveEndAll | Command: FileAttrClear | Command: FileAttrSet | Command: FileClose | Command: FileCloseAll | Command: FileCopy | Command: FileDateSet | Command: FileDelete | Command: FileMove | Command: FileRename | Function: DataFileSize

