code: public static BufferedWriter newWriter(File file, boolean append) throws IOException {
          return new BufferedWriter(new FileWriter(file, append));
      }
docs: Creates a buffered writer for this file, optionally appending to the
  existing file content.
  
  @param file   a File
  @param append true if data should be appended to the file
  @return a BufferedWriter
  @throws IOException if an IOException occurs.
  @since 1.0