SAVE TEXT - < data_save >() ... [Pro]
File SAVE TEXT <data_save>("Data","File","Mode","Password") Available in: Professional edition
|
Save textual data to file.
|
#
|
Parameter name
|
Parameter description
|
1
|
Data
|
Text to be saved (or variable containing text to be saved).
|
2
|
File
|
Path to the file (e.g., "c:\mydocuments\data.txt").
|
3
|
Mode
|
Can be one of the following values: "A" - the data will be appended to the end of the file "O" - the data will be written to the begin of the file
|
4
|
Password
|
Password to encrypt the file content. Leave the parameter empty if file content encryption is not required.
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This macro adds current date to a new line in the end of the file.
|
2
|
Macro execution: ONLY COMMANDS
|
3
|
Variable OPERATION "SELECT_FILE" (Variable for result = vFile, Input text/variable = , Parameter 1 = Select File, Parameter 2 = , Parameter 3 = 0)
|
4
|
Variable SET "vData=%_vKeyReturn%%_vCurrDate_MMDDYYYY%", Message text=""
|
5
|
File SAVE TEXT "vData" to file "vFile
|
|
Example (Plain Text):
<#> This macro adds current date to a new line in the end of the file.
<#>
<cmds>
<var_oper>(vFile,"",SELECT_FILE,"Select File","", "0")
<varset>("vData=%_vKeyReturn%%_vCurrDate_MMDDYYYY%","")
<data_save>("vData","vFile","A")