Java calling C program not working properly
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lun_Xiao
Posted On:   Thursday, April 4, 2002 02:20 PM

Hi,

I have a C program that executes like this:

			
myProg infile outfile


When the program is executed on dos command line, it
works well. When I call it in Java
			
Runtime.getRuntime.exec("myProg infile outfile");

The outfile is created. But the contents were not written.
How can I fix this problem? Thanks.

lun Xiao
About | Sitemap | Contact