src/org/kocakosm/pitaya/io/TextFiles.java
public static String read(File f, Charset charset) throws IOException
	{
		BufferedReader in = newReader(f, charset);
		try {
			return CharStreams.read(in);
		} finally {
			IO.close(in);
		}
	}
public static String read(File f, Charset charset) throws IOException
	{
		BufferedReader in = newReader(f, charset);
		try {
			return CharStreams.read(in);
		} finally {
			IO.close(in);
		}
	}
public static String read ( File f , Charset charset ) throws IOException { BufferedReader in = newReader ( f , charset ) ; try { return CharStreams . read ( in ) ; } finally { IO . close ( in ) ; } }
Reads the whole content of the given {@code File} as a {@code String}
using the specified charset.

@param f the file to read.
@param charset the charset to use.

@return the file's content as a {@code String}.

@throws NullPointerException if one of the arguments is {@code null}.
@throws IOException if {@code f} does not exist, or if it is a
directory rather than a regular file, or if it can't be read.
@throws SecurityException if a security manager exists and denies
read access to {@code f}.
Reads the whole content of the given { @code File } as a { @code String } using the specified charset .