SAVE Statement
Saves the contents of an array into a data file
SAVE {BIN|INT|MOT|TEXT}, <FILENAME>, <ARRAYNAME>
Arguments
{BIN|INT|MOT|TEXT}
File type of the file specified in <FILENAME>. Options are
Type |
Description |
Array Type |
BIN |
Binary File |
Integer |
INT |
INTEL HEX File |
Integer |
MOT |
Motorola HEX File |
Integer |
TEXT |
Text File |
String |
filename The name of the file including path if required.
arrayname The name of the array where the data is stored.
Remarks
The array must have been declared before executing this statement. Binary, INTEL and MOTOROLA format files can be saved from an integer array and TEXT files can be saved from a string array. The whole of the array will be saved into the file.
Example
Dim LogData[] as String
LogData[] = "Log Results from Test" // Add a message to the Log
LogData[] = "Line 2" // Add a second Line
SAVE TEXT,"C:\Test\Results.log",LogData