Monday, February 2, 2015

Cat.java in program



Cat.java

public class Cat
{

    public static void main(String[] args)
{
        Out out = new Out(args[args.length - 1]);
        for (int i = 0; i < args.length - 1; i++)
{
            In in = new In(args[i]);
            String s = in.readAll();
            out.println(s);
            in.close();
        }
        out.close();
    }

}

No comments:

Post a Comment