We usually do this for windows:
java test < in.txt > out.txt
or
test.exe < in.txt > out.txt
to direct i/o stream i/p and o/p to the in.txt and out.txt respectively.
How do i do it in osx?
java test < in.txt > out.txt
or
test.exe < in.txt > out.txt
to direct i/o stream i/p and o/p to the in.txt and out.txt respectively.
How do i do it in osx?