title: Delimiter with tab in text file
body: <p>Want to find the delimiter in the text file.</p>
  
  <p>The text looks: </p>
  
  <pre><code>ID;    Name
  1;     John Mak
  2;     David H 
  4;     Herry
  </code></pre>
  
  <p>The file consists of tabs with the delimiter.</p>
  
  <p>I tried with following: <a href="https://stackoverflow.com/questions/21407993/find-delimiter-in-txt-to-convert-to-csv-using-python">by referring</a></p>
  
  <pre><code>with open(filename, 'r') as f1:
      dialect = csv.Sniffer().sniff(f1.read(1024), "\t")
      print 'Delimiter:', dialect.delimiter
  </code></pre>
  
  <p>The result shows: <code>Delimiter:</code></p>
  
  <p>Expected result: <code>Delimiter: ;</code></p>