File_Records(Format)

File_Records(Format)

Description

This function erases all records data.

Syntax

File_Records(Format);

Returns

Return value

Return explanation

SCRIPT_OPERATION_SUCCESS

Success

Function call example

Example of closing record
#define FILE_ARRAY_LENGTH 25 new file_array{FILE_ARRAY_LENGTH}= "information to store: 234"; main() { File_Records(FILE_1, Create_File, "File_test.bin"); // creates FILE_1 record with name `File_test.bin` File_Records(FILE_1, Write_File, file_array, FILE_ARRAY_LENGTH); // writes array information to FILE_1 record File_Records(FILE_1, Close_File); // closes FILE_1 record File_Records(Format); for(;;) { Delay(1000); } }

Used in Examples

File Records example