I am trying to write a program in Java, and have been given a specific invocation of my program I need to read. This is in the form:
echo /data/directory | java MyProgram -arguements
What I need to do is read the information thats echoed, as this specifies a directory I need to read in my program.
P.S. How do I type the | character in the Windows CMD.exe window, Shift+\ just gives the ¦ character.