How to make input redirection to a file in Java exec() command??
807603Oct 31 2007 — edited Nov 2 2007I am trying to build an online java compiler. I want to make an input redirection to a file. I try instead of reading values from the keyboard to read them from a file. When i use the <file.txt in order to redirect input to a file it doesnt work into the exec command. Does anyone know how can i make the <file.txt to work into exec command into windows XP system?.