In <[EMAIL PROTECTED]>, Irmen de Jong wrote:

>> words = file.splitlines()
> 
> You can obtain this list without reading the file in its entirety,
> by using the readlines method of file objects:
> 
> words=open("words.txt").readlines()

This leaves the newline characters at the end of each line while
`str.splitlines()` removes them.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to