title: how to read ,increment by one and write back value to a network file location
body: <p>I am trying to read a value from a file "build_ver.txt" on a network location,increment the value by one and write back the incremented new value to "build_ver.txt" and running into following error,can anyone provide suggetions on how to achieve this?</p>
  
  <pre><code>with open('\\network\files\build_ver.txt','w+') as f:
      value = f
      value = value+1
  
  value_inc = open('\\network\files\build_ver.txt','w+')
  value_inc.write(value)
  </code></pre>
  
  <p>ERROR:-</p>
  
  <pre><code>Traceback (most recent call last):
    File "build_ver.py", line 1, in &lt;module&gt;
      with open('\\network\files\build_ver.txt','w+') as f:
  IOError: [Errno 22] invalid mode ('w+') or filename: '\\network\x0ciles\x08uild_ver.txt'
  </code></pre>