Yea, that would definitely be more flexible if you wanted to change the output on the fly. It also avoids race conditions on updating the message file and/or temp files affecting the directory timestamp... I'll have to give this a bit more thought at some point.
|