Here you can find the source of readFull(String path)
public static String readFull(String path) throws IOException
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Paths; public class Main { public static String readFull(String path) throws IOException { return new String(Files.readAllBytes(Paths.get(path)), Charset.defaultCharset()); }//w w w . j a v a 2 s. c o m }