I want to process the data using treescan.exe
for that I have one .tre
file and one .cas
file.Now we have make a .prm file from these two file .i want to execute this .prm file .I don't understand how to write a java program give input on treescan.exe
to give this .prm file as input. I am just able to run the .exe
file then I don't understand how to process further.
Here is the file format:
test.tre
00869 09.01
00947 09.01
00703 09.01
00329 09.01
00245 09.01
00102 09.01
00581 09.01
00409 09.01
09.01 09
09
test.cas
00102 45 95
00245 12 39
I have only written the code for open the .exe
file. Please help if some body knows how to process.
public class ProcessExe {
public static void main(String[] args) throws IOException, AWTException {
Robot robot = new Robot();
Runtime runtime=Runtime.getRuntime();
try{
Process process=runtime.exec("C://Program Files/TreeScan/TreeScan.exe");
}
catch(Exception e){
System.out.println(e);
}
}
}