Get filename format from config file