Set writing in different file formats