Two disadvantageous features when writing to files: There is no single feature bit combination of file opening mode where files are created if they do not yet exist or are only opened if they already exist. It requires two separate opening modes because OpenFile with the “Create new” feature always aborts with an error message if the file already exists. The second problem concerns the file pointer position. This must be managed in the control program because files cannot simply be opened to append data, and the pointer must first be set to the end separately using FileSeek.
Aside from that: It remains unclear at what amount of written data FileFlush actually requires use. Unless you go to the trouble of checking the response of the Write Command. According to the datasheet, FileClose is supposed to prevent data loss. However, the question remains whether, given the limited RAM buffer, one can write any amount of data in between?
Unfortunately, the hurdles mentioned lead to an unnecessary increase in the control effort that the module software could actually take away.