I tried to simply read and store the contents of a text file into an array, but:
ins = open( "file.txt", "r" )
array = []
for line in ins:
array.append( line )
ins.close()
It gives me an error for "open":
Unresolved reference 'open' less... (Ctrl+F1)
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.
Can anyone explain what I'm doing wrong? Thanks