title: Remove Duplicates from Text File
body: <p>I want to remove duplicate word from a text file.</p>
  
  <p>i have some text file which contain such like following:</p>
  
  <pre><code>None_None
  
  ConfigHandler_56663624
  ConfigHandler_56663624
  ConfigHandler_56663624
  ConfigHandler_56663624
  
  None_None
  
  ColumnConverter_56963312
  ColumnConverter_56963312
  
  PredicatesFactory_56963424
  PredicatesFactory_56963424
  
  PredicateConverter_56963648
  PredicateConverter_56963648
  
  ConfigHandler_80134888
  ConfigHandler_80134888
  ConfigHandler_80134888
  ConfigHandler_80134888
  </code></pre>
  
  <p>The resulted output needs to be:</p>
  
  <pre><code>None_None
  
  ConfigHandler_56663624
  
  ColumnConverter_56963312
  
  PredicatesFactory_56963424
  
  PredicateConverter_56963648
  
  ConfigHandler_80134888
  </code></pre>
  
  <p>I have used just this command:
  en=set(open('file.txt')
  but it does not work.</p>
  
  <p>Could anyone help me with how to extract only the unique set from the file </p>
  
  <p>Thank you </p>