Main Content

cdflib.getFileBackward

Return backward compatibility mode

    Description

    example

    bcMode = cdflib.getFileBackward returns the backward compatibility mode for new file creation. The function returns the backward compatibility mode as 'BACKWARDFILEoff' or 'BACKWARDFILEon'.

    Examples

    collapse all

    bcMode = cdflib.getFileBackward
    bcMode =
    
        'BACKWARDFILEoff'

    More About

    collapse all

    Backward Compatibility Mode

    When backward compatibility mode is enabled, any new CDF file created using version 3.0 or later of the CDF library will be readable by clients using version 2.7 of the library. Version 3.0 and later of the CDF library use a 64-bit file offset to allow for files larger than 2 GB. Versions of the CDF library before version 3.0 use a 32-bit file offset.

    Tips

    • This function corresponds to the CDFgetFileBackward routine in the CDF library C API.

    • To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.

    Version History

    Introduced in R2011a