title: Opening file error in Python : No such file or directory
body: <p>I'm a newbie for writing here. So please please be bear with me.</p>
  
  <p>I'm running this code to open my file and I put this in right directory 'data'. But my python sent me error message continuely.</p>
  
  <p>I wrote this,</p>
  
  <pre><code>#file = unidecode.unidecode(open('./data/input.txt').read())
  #file = unidecode.unidecode(open('./data/linux.txt').read())
  
  file = unidecode.unidecode(open('./data/hh1.txt').read())
  file_len = len(file)
  print('file_len =', file_len)
  </code></pre>
  
  <p>and poped up this</p>
  
  <pre><code>---------------------------------------------------------------------------
  FileNotFoundError                         Traceback (most recent call last)
  &lt;ipython-input-36-aa7f0f650918&gt; in &lt;module&gt;()
    4 #file = unidecode.unidecode(open('./data/linux.txt').read())
    5 
    ----&gt; 6 file = unidecode.unidecode(open('./data/hh1.txt').read())
    7 file_len = len(file)
    8 print('file_len =', file_len)
  
   FileNotFoundError: [Errno 2] No such file or directory: './data/hh1.txt
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/sX8dn.png" rel="nofollow noreferrer">code image</a>
  <a href="https://i.stack.imgur.com/aDF4E.png" rel="nofollow noreferrer">directory</a></p>
  
  <p>It's part of RNN(Recurrent Neural Network) code and it's part of processing text data to learn knitting pattern.</p>
  
  <p>It's very simple error but I can't find a good way out.... So thank you for your patient to read this and I hope someone could help me out</p>