Java Utililty Methods Text File Write by Charset

List of utility methods to do Text File Write by Charset

Description

The list of methods to do Text File Write by Charset are organized into topic(s).

Method

PathwriteTextToFile(String textToWrite, String fileName, Charset cs)
Writes plain text to a file.
Path file = Paths.get(fileName);
Files.write(file, Arrays.asList(textToWrite), cs, StandardOpenOption.CREATE);
return file;