Insert contents in different file formats