src/org/kocakosm/pitaya/io/Scanf.java
public static String readString(Charset charset) throws IOException
	{
		Reader in = new InputStreamReader(System.in, charset);
		BufferedReader reader = new BufferedReader(in);
		try {
			return reader.readLine();
		} finally {
			reader.close();
		}
	}
public static String readString(Charset charset) throws IOException
	{
		Reader in = new InputStreamReader(System.in, charset);
		BufferedReader reader = new BufferedReader(in);
		try {
			return reader.readLine();
		} finally {
			reader.close();
		}
	}
Reads the next line from the standard input using the given charset.

@param charset the charset to use.

@return the next line read from the standard input.

@throws NullPointerException if {@code charset} is {@code null}.
@throws IOException if the standard input cannot be read.