code: public static void writeLine(BufferedWriter writer, String line) throws IOException {
          writer.write(line);
          writer.newLine();
      }
docs: Write the text and append a newline (using the platform's line-ending).
  
  @param writer a BufferedWriter
  @param line   the line to write
  @throws IOException if an IOException occurs.
  @since 1.0