I'm reading a csv file generated from an equipment and I got this error message:
Error: line contains NULL byte
I opened the csv file in text editor and I do see there're some NUL bytes in the header section, which I don't really care about. How can I make the csv reader function to ignore the NUL byte and just goes through the rest of the file?
There're two blank lines between the header section and the data, maybe there's way to skip the whole header?
My code for reading the csv file is
with open(FileName, 'r', encoding='utf-8') as csvfile:
csvreader = csv.reader(csvfile)