At a Glance
The tables below set out the methods for using the memory card once it has been formatted.
Creating a File
The table below sets out the method for creating a file and adding information to it.
Step |
Action |
Related function |
Comment |
|---|---|---|---|
1 |
Create the file |
Returns the identifier (file descriptor) which will be used by the other functions. |
|
2 |
Set the file attributes |
Optional |
|
3 |
Display available space |
Optional This function can be called at any time. |
|
4 |
Positioning in the file |
||
5 |
Write data into the file |
||
6 |
Close the file |
Opening a File for Reading/Writing
The table below sets out the methods for opening a file to read it or write data into it.
Step |
Action |
Related function |
Comment |
|---|---|---|---|
1 |
Open the file |
Returns the identifier (file descriptor) which will be used by the other functions. |
|
2 |
Retrieve the file attributes |
Optional |
|
3 |
Position in the file |
Optional |
|
4 |
Display available space |
Optional This function can be called at any time. |
|
5 |
Write data |
||
6 |
Position in the file |
||
7 |
Read data |
||
8 |
Close the file |
Deleting a File
The table below sets out the method for deleting a file
Step |
Action |
Related function |
|---|---|---|
1 |
Delete the file |
Function Limitations
The number of files that may be open at the same time is limited to 16.
The number of files that can be created depends on the storage capacity of the memory card.
The functions can only be used in the MAST task.
The memory card must have DATA-STORAGE rights to be able to use these functions.

