title: ‘_io.TextIOWrapper’ object is not subscriptable error in python3
body: <p>I am working on a little program to eat away my day for me! And I am reading a file and storing each line in a variable like this: </p>
  
  <pre><code>cline = f[num_lines]
  </code></pre>
  
  <p>I have no idea why that error is popping up for that line here is my full code: </p>
  
  <pre><code>import os
  number_lines = 1
  print('Enter the filepath to the file you want to read.')
  fpath = input('Enter: ')
  print('okay')
  with open(fpath, 'r') as f:
      for line in f:
          cline = f[num_lines]
          originalline = number_lines
          number_lines += 1
          length = len(line)
          if cline[0] == 'e' and cline[1] == 'c' and cline[2] == 'h' and cline[3] == 'o' and cline[4] == '':
            echoing = cline[5:length]
            print(echoing)
          else:
            print('N# Does not recognize that command! In line: ' + str(originalline))
  </code></pre>
  
  <p>Thank you in advance I have no idea why this is not working.</p>