Read/writing to a file which is definitely going to be in use at random times
<p>I need to read a text based log file to check for certain contents (the completion of a backup job). Obviously, the file is written to when the job completes. </p>

<p>My question is, how can I (or how SHOULD I write the code to) read the file, taking into account the file may be locked, or locked by my process when it needs to be read, without causing any reliability concerns.</p>
