title: Line contains null byte error while reading csv file
body: <p>I have tried reading a csv file using the following format of code.</p>
  
  <pre><code>def csv_dict_reader(file_obj):
      reader = csv.reader(file_obj, delimiter=',')
      for row in reader:
          # some operation
  
  file = open("data.csv", "r")
  csv_dict_reader(file)
  </code></pre>
  
  <p>I have referred the solutions given <a href="https://stackoverflow.com/questions/7894856/line-contains-null-byte-in-csv-reader-python">here</a>, but none of them seem to work. What could be the most probable reason for this.</p>
  
  <p>The error:  </p>
  
  <pre><code>    for row in reader:
  _csv.Error: line contains NULL byte
  </code></pre>