DIAdem Help

Command: FileWrite

  • Updated2024-09-12
  • 3 minute(s) read

Display all  Hide all

Command: FileWrite

Writes a line without a concluding line break into an ASCII file.

Call FileWrite(FileName, RecMode, FileLine)

Input Parameters

FileName Specifies the file name.
RecMode Specifies whether DIAdem writes the text into a newly created ASCII file or whether DIAdem appends the text to the contents of an existing ASCII file.
FileLine Specifies the text that DIAdem writes into a text file.
Note  If the target file already exists DIAdem overwrites this file without a confirmation prompt.
Note  If the ASCII file is not open when DIAdem executes the FileWrite command, DIAdem opens this file and closes the file again. If the file is already open, DIAdem does not close the file after the command is executed.
Note  Use the TextFileWriteLn function to write in text files. This function also supports long text and Unicode characters.  Use the TextFileReadLn function to read text files.

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: FileOpen | Command: FileRename | Function: DataFileSize