FileServices.writeFile

Creates a new file if necessary with the specified file path and saves the file with the specified text decoded using the specified encoding. If the file already exists, it's contents are replaced.

Parameters

java.lang.String  filePath,  java.lang.String  text,  java.lang.String  encoding,