Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to make input redirection to a file in Java exec() command??

807603Oct 31 2007 — edited Nov 2 2007
I 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?.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2007
Added on Oct 31 2007
6 comments
3,809 views