FILE_WriteΒΆ

../_images/91e4c980e389872f0a33139000eba54e
Parameter Value
Library_File_Name CAA_File.lib
Firmware V2.1
Type Type_Function_Block_History
Group File

FILE_Write writes data into the file which was previously opened via FILE_Open. The contents of the memory area indicated by pointer pBuffer should not be modified during the write action! The size of the structure of the memory containing the bytes to be written as well as the number of bytes to be written will not be checked. The stability of the pointer on the data structures and their contents must be guaranteed if online change is executed. If pointer to data structure is changed during online changes operation could lead to file damage.

For performance reasons the file system buffers written data. In effect only flushing or closing a file updates its representation on the device completely.

Note

Without a correct FILE_Close written data will be lost!