question: private String readFile ( String path , Charset encoding ) throws IOException { byte [ ] encoded = Files . readAllBytes ( Paths . get ( path ) ) ; return new String ( encoded , encoding ) ; }
target:  read a whole file into a single string