public static void main(String[] args) {
        
        if(args.length > 0){
            String name = "./" + args[0];
            File file = new File(name);
            BufferedReader in = null;
            
            try {
                in = new BufferedReader(new FileReader(file));
                String line;
                while((line = in.readLine()) != null){
                    System.out.println(line);
                }
            } catch (FileNotFoundException ex){
                System.out.println("File " + name + " does not exist.");
            } catch (IOException ex){
                ex.printStackTrace();
            } finally {
                closeReader(in);
            }
        }
    }