WriteFile service writes the specified text data into the specified file. If the file does not exist, it will be created. If file already exists, it will be overwritten. We usually use WriteFile service to create .txt and .csv file. For .pdf file, please refer to HtmlStringToPDFStream service.