WriteToFile/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „'''Save text to file.'''“)
(Založena nová stránka s textem „Saves the contents of the Text parameter to a file named FileName and encoding accor…“)
Řádek 9: Řádek 9:
 
'''Save text to file.'''
 
'''Save text to file.'''
  
Obsah parametru [[Special:MyLanguage/#text-| Text]] uloží do souboru s názvem [[Special:MyLanguage/#filename-| FileName]] a kódováním dle parametru [[Special:MyLanguage/#encoding-| Encoding]]. Pokud je parametr [[Special:MyLanguage/#unique-| Unique]] nenulový, může dojít ke změně názvu souboru tak, aby byl jedinečný. Použitý název souboru je uložen do výstupu [[Special:MyLanguage/#filename-| FileName]]. Parametrem [[Special:MyLanguage/#makepath-| MakePath]] lze povolit automatické vytvoření cesty, pokud neexistuje. Režim [[Special:MyLanguage/#mode-| Mode]] určuje, zda nový text přepíše původní obsah souboru nebo se připíše na konec.
+
Saves the contents of the [[Special: MyLanguage/#text-|Text]] parameter to a file named [[Special: MyLanguage / # filename- | FileName]] and encoding according to the [[Special: MyLanguage / # encoding- | parameter Encoding]]. If the [[Special: MyLanguage / # unique- | parameter is Unique]] nonzero, the file name may be changed to be unique. The file name used is stored in the output [[Special: MyLanguage / # filename- | FileName]]. The [[Special: MyLanguage / # makepath- | parameter MakePath]] can enable automatic path creation if it does not exist. Mode [[Special: MyLanguage / # mode- | Mode]] determines whether the new text overwrites the original contents of the file or is appended to the end.
  
 
== Vstupní parametry ==
 
== Vstupní parametry ==

Verze z 2. 2. 2021, 15:54

Jiné jazyky:
English • ‎čeština

Description

Alias: WTF

Save text to file.

Saves the contents of the Text parameter to a file named FileName and encoding according to the parameter Encoding. If the parameter is Unique nonzero, the file name may be changed to be unique. The file name used is stored in the output FileName. The parameter MakePath can enable automatic path creation if it does not exist. Mode Mode determines whether the new text overwrites the original contents of the file or is appended to the end.

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.