class TextFileWriter {
  private static final TextFileWriter INSTANCE = new TextFileWriter();

  public static TextFileWriter instance() {
    return INSTANCE;
  }

  public void write(File file, String... content) throws IOException {
    write(file, Charset.defaultCharset(), content);
  }

  public void write(File file, Charset charset, String... content) throws IOException {<FILL_FUNCTION_BODY>}

  private TextFileWriter() {}
}

    try (PrintWriter writer = new PrintWriter(new OutputStreamWriter(new FileOutputStream(file), charset))) {
      for (String line : content) {
        writer.println(line);
      }
    }
  
<no_super_class>