
Contents |
Create a .txt file that contains notes or records of the user's work through a string.
1. filelog str:="Part 1 has been done.";
2. filelog str:="Start to test Part 2." newline:=1;
3. filelog str:="Begining" fname:=test path:=C:\ clear:=1;
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Information | str |
Input string | | The variable specifies the input for the log file. |
| File Name | fname |
Input string | | This variable specifies the name of the file. The default name is LogFile.txt |
| File Path | path |
Input string | | This variable specifies the path of the file. |
| Add New Line at First | newline |
Input int | | Whether or not add a blank line at first. The default setting is not adding new line. |
| Clear Log File Data | clear |
Input int | | Specifies whether or not to clear the log file. The default setting is not clearing this file. |
This X-function can be used to create a .txt file that contains notes or records of the user's work through a string.