title: Reading and writing to the same file from two different scripts at the same time
body: <p>I have some simple question about reading and writting files using Python.
  I want to read (just reading without writting) the same file from one script and read+write from other script.</p>
  
  <p>Script_1 - Only reading:</p>
  
  <pre><code>with open("log.txt", "r") as f:
      content = f.read()
  </code></pre>
  
  <p>Script_2 - Read and write:</p>
  
  <pre><code>with open("log.txt", "a+") as f:
      content = f.read()
      f.write("This is new line,")
  </code></pre>
  
  <p>And my question is -  Is this ok? </p>
  
  <p>Will I get some errors or sth when scripts try to access to the same file at exactly the same time? 
  (yeah it's hard to test this ^^)</p>
  
  <p>I mean I was reading some posts about this and I'm not sure now.</p>