List,
I'm looking for the code (loop) to cause my program to wait until a text file is created, before it loads the text file contents into a TMemo.
Here's the deal;
My Delphi code gathers user information, then executes a fortran program which crunches numbers. The fortran program then outputs to a text file. Next, the program reads the text file into a TMemo. This is done with a simple button press in the GUI. I want to automate this, but the problem I'm having is, the code loads the TMemo field before the text file is created. I don't know how to write the code to keep the program running and waiting for the text file to be created BEFORE I import the text file into the TMemo field.
Thanks in advance,
Harrison
I'm looking for the code (loop) to cause my program to wait until a text file is created, before it loads the text file contents into a TMemo.
Here's the deal;
My Delphi code gathers user information, then executes a fortran program which crunches numbers. The fortran program then outputs to a text file. Next, the program reads the text file into a TMemo. This is done with a simple button press in the GUI. I want to automate this, but the problem I'm having is, the code loads the TMemo field before the text file is created. I don't know how to write the code to keep the program running and waiting for the text file to be created BEFORE I import the text file into the TMemo field.
Thanks in advance,
Harrison