CS3 students, Assume that the key is "small enough" not to encode characters into special-case characters and thus corrupt the file. Also, you are free to read-in the file with getline() and then use string comparison functions to find if two strings are the same or different. Thanks, -- Mikhail