Thomas Girod wrote: > > while line != "": > > and it works very well. Thanks Thomas, I stand corrected now. my mistake, I was checking against a single space ' ' instead of empty string ''. :( -- Senthil