src/org/kocakosm/pitaya/io/TextFiles.java
public static List<String> head(File f, Charset charset) throws IOException
	{
		return head(f, 10, charset);
	}
public static List<String> head(File f, Charset charset) throws IOException
	{
		return head(f, 10, charset);
	}
Returns the first (up to 10) lines of the given {@code File} using
the specified charset. Named after the Unix command of the same name.

@param f the {@code File} to read.
@param charset the charset to use.

@return the first lines of the given {@code File}.

@throws NullPointerException if {@code f} 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}.