I was wondering, is there a way to check if a program takes input from keyboard or file at run time?
I want my application to determine other application's input method since it compiles and runs other applications using command line. My application is written in Java but it compiles programs written in many languages.