public static void main(String[] arguments) throws IOException { BufferedReader commandRead = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Hello! Please input the file you wish to compress! :"); String text = commandRead.readLine(); System.out.println("Reading File ... " + text); Charset encoding = Charset.defaultCharset(); File file = new File(text); handleFile(file, encoding); }