Introduction:
- Simply ignoring NULL characters while reading CSV file.
Script:
def nonull(stream):
for line in stream:
yield line.replace('\x00', '')
reader = csv.reader(nonull(open(os.getcwd()+"/test.csv")), dialect='excel', delimiter='|')
0 Comments:
Subscribe to:
Post Comments (Atom)