I am kokhwa.

I had use Runtime.exec() to run a program. The program will generate a file.

I need to read the file to generate another file.
So i have to wait the program generate the file which i want.

What method should i use to wait until the program generate the file i want?If the file had been generated,
I will use it. If not, I have to wait it until the file had been generate.

...That is my problem!

anybody know how to solve this problem?
Thanks for your help!