The stream you are reading from is usually a perfectly good EOF value. Rod Brooks showed me this, and I have yet to encounter a situation where it did not suffice. Wade ------