WriteToFile/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „When the value is non-null, it creates the path specified by the FileName parameter if it does not already exist.“)
(Založena nová stránka s textem „"Write to file mode(0=truncate; 1=append)."“)
Řádek 46: Řádek 46:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
"Režim zápisu do souboru (0=truncate; 1=append)."
+
"Write to file mode(0=truncate; 1=append)."
  
 
<span id="encoding-"></span>
 
<span id="encoding-"></span>

Verze z 2. 2. 2021, 16:06

Jiné jazyky:
English • ‎čeština

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

Recorded 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

Kódování souboru (0=ANSI, 1=Unicode, 2=UTF8).

Enabled

Type Number

Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.

PreWait

Type Number

Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.

PostWait

Type Number

Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.

Výstupní parametry

FileName

Type String

Použité jméno výstupního souboru.