I'm using idle in OS X, and I'm trying to parse a file with .data
extension:
FP = open('<filename>.data','r')
lines=FP.readlines()
print lines
but this prints an empty array: []
I also tried Sublime but also doesn't work. What is another method to use in Python to read this?