Readlines is indeed documented as reading EOF:
http://www.tutorialspoint.com/python/file_methods.htm
Bye,
skybuck.
"Skybuck Flying" wrote in message
news:37cda$556d009d$5419aafe$38...@news.ziggo.nl...
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