Insert heading in different file formats