Describe the Create File tab on the DncWriteFile Setting panel.
It is possible to set such as the file name, write mode of the file, character code.
①File Name
Specify the name of the file to save. It is possible to specify including the file path.
You can specify it from the file save dialog by clicking the [Reference] button.
If the file path does not exist, the file will be created at the same level as the exe file.
②File Name Option
Specify the option for the file name specified in ①.
Item |
Description |
None |
Does not specify an option for the file name. |
Date |
Append the date when creating the file. It is appended to the file name in the format yyyymmdd. File Name: If it is Log.csv, it will be created with the file name [Log20220401.csv]. |
Num |
Append the file number when creating the file. The file number is appended in 5 digits. File Name: If it is Log.csv, it will be created with the file name [Log00000.csv]. |
DateAndNum |
Append the date and file number when creating the file. File Name: If it is Log.csv, it will be created with the file name [Log220328_00000.csv]. |
③Default File No.
Specify the initial value of the file number. The valid range is 0-99999.
This is valid when [Num] or [DateAndNum] is specified in the File Name Option.
④Write Mode
Specifies how to write to the file.
If an existing file exists, you can choose to overwrite it or append it.
Item |
Description |
Create Mode |
Overwrite the file. |
Append Mode |
Append to the file. |
⑤Flush Mode Enable
Enables or disables the flush mode.
When the flush mode is enabled, the contents of the file will be reflected each time you write.
* Normally, the written contents are not reflected in the file until it is closed.
⑥File Change Mode
Specifies the conditions for changing files.
Item |
Description |
None |
Continue to append files without changing. |
Per Number of records |
Changes to a new file when the specified number of records are written. When using this function, specify [Num] or [DateAndNum] in the File Name Option. |
⑦Line Terminator
Specifies the line terminator for the file.
Item |
Description |
CR |
Use CR to start a new line. |
LF |
Use LF to start a new line. |
CR+ LF |
Use CR+LF to start a new line. |
⑧Character code
Specifies the character code used in the file.
Item |
Description |
UTF-8 |
Use UTF-8. |
UTF-16 |
Use UTF-16. |
Shift-JIS |
Use Shift-JIS. |
EUC |
Use EUC. |