Set text in different file formats