public static void writeln(String fileName,Object[] objects){
  if (writer == null) {
    createWriter(fileName);
    for (    Object obj : objects) {
      writeln(obj.toString());
    }
    closeWriter();
  }
}

public static void writeln ( String fileName , Object [ ] objects ) { if ( writer == null ) { createWriter ( fileName ) ; for ( Object obj : objects ) { writeln ( obj . toString ( ) ) ; } closeWriter ( ) ; } }
writes an array of objects to a text file , each on a line .
