This function returns am_status_t with one of the following values:
If no error is detected.
If there is a problem writing the properties to the file.
If properties or file_name is NULL or file_name points to an empty string.