public static void dump(String fileName,boolean details){
  dump(fileName,new PrintWriter(System.out),details);
}

public static void dump ( String fileName , boolean details ) { dump ( fileName , new PrintWriter ( System . out ) , details ) ; }
read the contents of the file and write them to system out .
