title: "OSError: [Errno 36] File name too long" while opening a text file
body: <p>I am trying to replace a number that is already in a text file with a new number. I opened the file and the name of the file I am opening is pretty short: "example_Na.chem", but I am still receiving the error that: OSError: [Errno 36] File name too long".</p>
  
  <p>The code I am using is: </p>
  
  <pre><code>filename_chem = open('./input/example_Na/example_Na.chem', 'r').read()
  input_file_chem = filename_chem.format(albeitSSA=albeitSSA)
      with open(filename_chem, 'w') as fid:
          fid.write(input_file_chem)
  
  
  
  </code></pre>