WriteToFile/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
Řádek 9: Řádek 9:
 
'''Save text to file.'''
 
'''Save text to file.'''
  
Saves the contents of the [[Special:MyLanguage/#text-|Text]] parameter to the [[Special: MyLanguage/#filename-|FileName]] and encoding according to the [[Special:MyLanguage/#encoding-|Encoding]] parameter. If the [[Special:MyLanguage/#unique-|Unique]] parameter is non-null, the filename may be changed to make it unique. The filename is stored in the output [[Special:MyLanguage/#filename-|FileName]]. The [[Special:MyLanguage/#makepath-|MakePath]] parameter can enable the automatic creation of the path if it does not exist. The [[Special:MyLanguage/#mode-|Mode]] determines whether the new text overwrites the original contents of the file or is appended to the end of it.
+
Saves the contents of the [[Special:MyLanguage/#text-|Text]] parameter to the [[Special: MyLanguage/#filename-|FileName]] and does the encoding according to the [[Special:MyLanguage/#encoding-|Encoding]] parameter. If the [[Special:MyLanguage/#unique-|Unique]] parameter is non-null, the filename may be changed to make it unique. The filename is stored in the output [[Special:MyLanguage/#filename-|FileName]]. The [[Special:MyLanguage/#makepath-|MakePath]] parameter can enable the automatic creation of the path if it does not exist. The [[Special:MyLanguage/#mode-|Mode]] determines whether the new text overwrites the original contents of the file or is appended to the end of it.
  
 
== Vstupní parametry ==
 
== Vstupní parametry ==

Verze z 2. 2. 2021, 16:00

Jiné jazyky:
English • ‎čeština

Description

Alias: WTF

Save text to file.

Saves the contents of the Text parameter to the FileName and does the encoding 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.

Vstupní parametry

Text

Typ String

Zapisovaný text.

FileName

Typ String

Jméno výstupního souboru.

Unique

Typ Number

Při hodnotě 1 bude název souboru automaticky přejmenován, pokud soubor s tímto názvem již existuje. Použítý název bude uložen do výstupního parametru FileName.

MakePath

Typ Number

Při nenulové hodnotě vytvoří cestu určenou parametrem FileName, pokud neexistuje.

Mode

Typ Number

"Režim zápisu do souboru (0=truncate; 1=append)."

Encoding

Typ Number

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

Enabled

Typ Number

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

PreWait

Typ Number

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

PostWait

Typ Number

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

Výstupní parametry

FileName

Typ String

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