docs: public static void writeToFile(@NonNull File file, @NonNull String content) throws IOException {
      OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");
      try {
        writer.write(content);
        writer.flush();
      } catch (IOException ioe) {
        Log.e(LOG_TAG, ioe.toString());
      } finally {
        try {
          writer.close();
        } catch (IOException ioe) {
          Log.e(LOG_TAG, ioe.toString());
        }
      }
    }