Introducing the Storage Actions

This provides actions to store information to the hard disk of a computer or to a floppy disk. In particular it allows you to read and write information into variables, allowing you to permanently store information into a file. This information might be used to track the user’s progress, to store purchases or user details.

Note:
Before using these actions, you should be familiar with the concept of variables (see Introducing Variables in Opus for more information).

Opus provides three ways of storing information:

1. Disk file – reading and writing information into a plain text file on a floppy disk, hard disk or a networked drive using a variable.

2. Text file – writing information into a plain text file, as above, using a text box in which you type the information you want to store rather than selecting a variable.

3. Registry – reading and writing information to the Windows Registry.

Important Note!

The Read and Write actions in the Storage menu can only be used when you publish as a standalone publication – please read the Publishing Restrictions section for more information.

Storage in HTML5

When publishing to HTML5 Opus can use the local storage (cookie) functions in HTML5 to store information. We have invluded both Write Cookie and Read Cookie actions. In both cases you assign a name or label by which the information is accessed and use a variable to provide the information to be stored or into which the information should be placed.

More extensive storage can be provided by using the Post Web Data actions to connect your Opus publication to a web databse such as MySQL. See the tutorial section of the website for further information.

Related Topics:

the Write to Disk File action

the Write Text to File action

the Read from Disk File action

the Read First Line from File action

the Read Next Line from File action

the Read Next Field from File action

 

the Go to Start of File action

the Go to Next Line of File action

the Close File action

 

the Write Data to Registry action

the Read Data from Registry action

the Delete Data from Registry action

Delete All Publication Data from Registry