title: Why can't the set difference function compare lists with data from files?
body: <p>Here are my files and functions:</p>
  
  <p>List1.txt => cat 
               dog 
               tiger 
               bear</p>
  
  <p>List2.txt => cat 
               dog 
               tiger</p>
  
  <p>These files are ANSI encoded on winodws xp.</p>
  
  <pre><code>(defun get-file (filename)
    (with-open-file (stream filename)
    (loop for line = (read-line stream nil)
    while line collect line)))
  
  (defparameter *file1* (get-file "list1.txt"))
  (defparameter *file2* (get-file "list2.txt"))
  
  (set-difference *file1* *file2*)
  </code></pre>
  
  <p>I would think the output would be just "bear". However, it returns ("cat", "dog", "tiger", "bear") as the difference. I am assuming it has to due with me reading the information in from files but I was stuck there. Thank you for your time. </p>