File_Records(..., Create_File)
Description
This function creates new record.
Syntax
File_Records(file_number, Create_File, file_name);
Parameters
Variable | Input |
|---|---|
| FILE_1 - Create new record file 1. FILE_2 - Create new record file 2. FILE_3 - Create new record file 3. |
|
|
Returns
Return value | Return explanation |
SCRIPT_OPERATION_SUCCESS | Success |
SCRIPT_OPERATION_FAILED | Failed |
Function call example
example of creating new record file
new file_array{}= "information to store: 234";
main()
{
File_Records(FILE_1, Create_File, "File_test.bin"); // creates FILE_1 record with name `File_test.bin`
for(;;)
{
Delay(1000);
}
}
Notes and Warnings
Active record must be closed before trying to create a new record.