LOAD TEXT - < data_load >() ... [Pro]
File LOAD TEXT <data_load>("Variable","File","Password") Available in: Professional edition
|
This command loads (textual) data from file (whole the content) to the given variable.
|
#
|
Parameter name
|
Parameter description
|
1
|
Variable
|
Variable that receives the file content (text).
|
2
|
File
|
Path to the file with data (e.g., "c:\mydocuments\data.txt").
|
3
|
Password
|
Password used to decrypt the file content. The password must be the same that was previously used to save data (for example, using 'data_save' or 'data_crypt' command). If incorrect password is provided then the command fails. Leave the parameter empty if the file is not encrypted.
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This macro loads the file content to variable
|
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
|
File LOAD TEXT from file "vFile" to "%vFileData%"
|
5
|
Message SHOW "" : "vFileData" (other parameters: x = -100, y = -100, Window title = File Content, Buttons = OK, Timeout (seconds) = , Always on top = ).
|
|
Example (Plain Text):
<#> This macro loads the file content to variable
<#>
<cmds>
<var_oper>(vFile,"",SELECT_FILE,"Select File","", "0")
<data_load>("%vFileData%","vFile","")
<msg>(-100,-100,"vFileData","File Content",1)