WriteToFile/en: Porovnání verzí
(Založena nová stránka s textem „Type Number“) |
|||
| (Není zobrazeno 17 mezilehlých verzí od stejného uživatele.) | |||
| Řádek 18: | Řádek 18: | ||
Type [[Special:MyLanguage/Data types#String | String]] | Type [[Special:MyLanguage/Data types#String | String]] | ||
| − | + | Written text. | |
<span id="filename-"></span> | <span id="filename-"></span> | ||
| Řádek 25: | Řádek 25: | ||
Type [[Special:MyLanguage/Data types#String | String]] | Type [[Special:MyLanguage/Data types#String | String]] | ||
| − | + | Name of output file. | |
<span id="unique-"></span> | <span id="unique-"></span> | ||
| Řádek 32: | Řádek 32: | ||
Type [[Special:MyLanguage/Data types#Number | Number]] | Type [[Special:MyLanguage/Data types#Number | Number]] | ||
| − | + | When the value is 1, the filename will be automatically renamed if a file with that name already exists. The name used will be stored in the [[Special:MyLanguage/#filename-|FileName]] output parameter. | |
<span id="makepath-"></span> | <span id="makepath-"></span> | ||
=== MakePath === | === MakePath === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | When the value is non-null, it creates the path specified by the FileName parameter if it does not already exist. | |
<span id="mode-"></span> | <span id="mode-"></span> | ||
=== Mode === | === Mode === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | " | + | "Write to file mode(0=truncate; 1=append)." |
<span id="encoding-"></span> | <span id="encoding-"></span> | ||
=== Encoding === | === Encoding === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | File coding (0=ANSI, 1=Unicode, 2=UTF8). | |
=== Enabled === | === Enabled === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Enables or disables the command. If the value is 0, the command will not execute. | |
=== PreWait === | === PreWait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Delay in milliseconds before executing the command. It has no effect if Enabled=0. | |
=== PostWait === | === PostWait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Delay in milliseconds before executing the command. It has no effect if Enabled=0. | |
| − | == | + | == Output parameters == |
<span id="filename-"></span> | <span id="filename-"></span> | ||
| Řádek 80: | Řádek 80: | ||
Type [[Special:MyLanguage/Data types#String | String]] | Type [[Special:MyLanguage/Data types#String | String]] | ||
| − | + | Name used for the output file. | |
Aktuální verze z 2. 2. 2021, 16:08
Obsah
Description
Alias: WTF
Save text to file.
Saves the contents of the Text parameter to the FileName according to the Encoding parameter. If the Unique parameter is non-null, the filename may be changed to make it unique. The filename is stored in the output FileName. The MakePath parameter can enable the automatic creation of the path if it does not exist. The Mode determines whether the new text overwrites the original contents of the file or is appended to the end of it.
Input parameters
Text
Type String
Written text.
FileName
Type String
Name of output file.
Unique
Type Number
When the value is 1, the filename will be automatically renamed if a file with that name already exists. The name used will be stored in the FileName output parameter.
MakePath
Type Number
When the value is non-null, it creates the path specified by the FileName parameter if it does not already exist.
Mode
Type Number
"Write to file mode(0=truncate; 1=append)."
Encoding
Type Number
File coding (0=ANSI, 1=Unicode, 2=UTF8).
Enabled
Type Number
Enables or disables the command. If the value is 0, the command will not execute.
PreWait
Type Number
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
PostWait
Type Number
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
Output parameters
FileName
Type String
Name used for the output file.