Dennis Lee Bieber a écrit : (snip) > All of which can be condensed into a simple > > for ln in f: > wrds = ln.strip() > # do something with the words -- no whitespace to be seen I assume you meant: wrds = ln.strip().split() ?-)