On 10-Feb-2000 Pedro Silva wrote: > for lines in f.readline(): I believe this is your mistake here. If you use readline(), you will be looping over the characters of a single line. I think you want to use readlines(). ---------------------------------- Nathan Clegg nathan at islanddata.com