File_Records(..., Length_File)
Description
This function is used to get length of record.
Syntax
File_Records(file_number, Length_File);
Parameters
Variable | Input |
|---|---|
| FILE_1 - Get length of record file 1. FILE_2 - Get length of record file 2. FILE_3 - Get length of record file 3. |
Returns
Returns length of record.
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
length = File_Records(FILE_1, Length_File); // this will return record length = FILE_ARRAY_LENGTH
for(;;)
{
Delay(1000);
}
}