title: file handling runtime error - python in pycharm
body: <p>My script program as folows-</p>
  <pre><code>fname = raw_input('Enter a file name: ')
  f1 = open(fname)
  for line in f1:
      line1 = line.capitalize()
      print line1
  </code></pre>
  <p>How to solve this error?</p>
  <pre><code>File &quot;&lt;input&gt;&quot;, line 1, in &lt;module&gt;   File &quot;D:\PyCharm Community Edition 2018.2.2\helpers\pydev\_pydev_bundle\pydev_umd.py&quot;, line 197, in runfile
      pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script  
  File &quot;D:/Pycharm Projects/Files/p7.1.py&quot;, line 5, in &lt;module&gt;
      f1 = open(file_name) IOError: [Errno 2] No such file or directory: 
  'D:/Pycharm Projects/Files/fname\\mbox-short.text'
  </code></pre>