Output from exec not writing to a file in java -
From inside my Java code, I have an external program, I use the following:
< Pre> full return CODEC = 0; String cmmd = "die-fa-fn rays" + file1; Last process processCC = Runtime.getRuntime (). Exec (cmnd); Buffer bufC = new buffed reader (new input stereo reader (Process.jet InputStream ())); ReturnCodeC = processCC.waitFor (); } Hold (Exception E1) {e1.printStackTrace ();}} External program diameter should be called from the call in the file called Output File 1 having had . I think the problem is that when the production is bigger than Diya, then I am not getting any output. Is there a size limit for buffer reader?
Now when I think I understand the problem, then I will advise you to use Project Builder It allows you to provide exceptional control over the process output. Here's a link that can help you:
The process gets a string array as a logic, so string [] cmd = {"dia", "-fa "," -fn "," res "};
Comments
Post a Comment