>You could put try...catch in a loop w/o throwing the error. At the end of the loop if loFile is null throw.
So, basically, I could allow a maximum of 2 seconds for this retry. Otherwise, I would throw an error. This process only takes a fraction of a second. The files that are being created by the robot are about 200 to 1000 characters. So, with this approach, using the 2 seconds maximum timeout, I should be able to cover it pretty much. But, the method is used by other applications which might create bigger files. So, I guess I could add a parameter for the number of seconds or number of retries to do with a small pause between each of them.