Code snippet if different format file used