Add text in different file formats