When I using the following code to read file:
lines=file(\"data.txt\").read().split(\"\\n\")
I have the following error
Mem
use this code to read file line by line:
for line in open('data.txt'): # work with line