Smart Package Robot 's List Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > LST. - List Arrays > Store/Restore-Operations >

 Smart Package Robot 's List Commands

LST.FileStore - Store Container to File

Previous Top Next


MiniRobotLanguage (MRL)

 

LST.FileStore

Store the contents of a container to a file

 

 

Intention

 

The LST.FileStore command allows you to store the contents of a container (list) into a file. This is particularly useful for saving the state of a container for later use or for sharing data between different scripts or sessions.

The command takes two parameters: the handle of the container and the file path where the container should be stored. If the file path is omitted, the container will be stored in a default location.

 

 

Syntax

 

LST.FileStore|P1|P2

 

Parameter Explanation

 

P1 - The handle of the container to be stored. This is typically a variable that contains the handle of the container.

P2 - The file path where the container should be stored.

 

 

Example

 

'***********************************

' LST.FileStore Sample

'***********************************
' Create a new list and add some elements

LST.New|$$LST

LST.Add|$$LST|Hello

LST.Add|$$LST|World

 

' Store the list to a file

LST.FileStore|$$LST|C:\Temp\MyList.dat

 

' End the script

ENR.

 

 

Remarks

 

-

 

 

Limitations:

- The file path must be valid and writable.

 

See also:

 

LST.FileRestore - Load Container from File

LST.New - Create a New List

LST.Add - Add Element to List