I need to know the most efficient way to write to a file. Currently I am just doing an open on the file and appending to the file, then I close the file. This script is called programmatically every three minutes. There is another script that accesses the same file. This script opens the file and pulls into an array and closed the file and is called by an appicalion when needed, so it may run one a minute, second or hour. I am concerned there may be file contention.