title: Opening/Attempting to Read a file
body: <p>I tried to simply read and store the contents of a text file into an array, but:</p>
  
  <pre><code>ins = open( "file.txt", "r" )
  array = []
  for line in ins:
      array.append( line )
  ins.close()
  </code></pre>
  
  <p>It gives me an error for "open":</p>
  
  <pre><code>Unresolved reference 'open' less... (Ctrl+F1) 
  </code></pre>
  
  <p>This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items. </p>
  
  <p>Can anyone explain what I'm doing wrong?
  Thanks</p>