Script Command: opendata


(Contents)(Previous)(Next)

Format:

opendata "filename" {error LABEL};

The opendata command opens a data file the user created earlier (for example, by editing with the Windows Notepad). The data file is a text file containing lines of variable values you wish to read into the currently running script with the readdata command. The optional error parameter allows you to transfer script execution to a LABEL if the script processor cannot open "filename".

Examples:

label START;

opendata "\test\testdata.in" error KABOOM;

exit;

label KABOOM;

messagebox title "Error" text "Could not open a file.";

exit;


(Contents)(Previous)(Next)