Readlines is indeed documented as reading EOF:
http://www.tutorialspoint.com/python/file_methods.htm
Bye,
skybuck.
"Skybuck Flying" wrote in message
news:[email protected]...
This will probably help:
http://stackoverflow.com/questions/14676265/how-to-read-text-file-into-a-list-or-array-with-python
text_file = open("filename.dat", "r")
lines = text_file.readlines()
print lines
print len(lines)
text_file.close() Usually I like to consult officals docs though...Bye,
Skybuck.
--
https://mail.python.org/mailman/listinfo/python-list