I was testing a little piece of code that I need to implement in a Java school project.

```
public class Prova {
    public static void main(String[] args){
       System.out.println(args.length);

       for(int i = 0; i < args.length; i++){
           System.out.print(args[i]);
       }

       System.out.print("\nEnd!");
    }
}

```

When I type in the console `java Prova < test.dot` while the content of the `test.dot` file is:

```
digraph G1 {
c -> e;
a -> e;
a -> f;
f -> b;
g;
}

```

I just get this: 

```
C:\Users\Lorenzo\workspace\Progetto_ASD\bin>java Prova < test.dot
0

End!

```

I tryed `java Prova > output.txt` just to see if the pipe worked and it does (I get the same as above but in a file).

If I try `type test.dot` I get:

```
C:\Users\Lorenzo\workspace\Progetto_ASD\bin>type test.dot
digraph G1 {
c -> e;
a -> e;
a -> f;
f -> b;
g;
}

```

As I would expect.

I really don't know what's wrong with what I'm doing (I'm using Windows by the way).