Parser needed.

Skybuck Flying skybuck2000 at hotmail.com
Mon Jun 1 21:10:29 EDT 2015


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$38529 at 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. 




More information about the Python-list mailing list