WriteToFile
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
Zapisovaný text.
FileName
Type String
Jméno výstupního souboru.
Unique
Type 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
Type Number
Při nenulové hodnotě vytvoří cestu určenou parametrem FileName, pokud neexistuje.
Mode
Type Number
"Režim zápisu do souboru (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
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
Type String
Použité jméno výstupního souboru.