# -*- coding: utf-8 -*- import csv with open('C:\Users\Anwender\Desktop\Test\blub.txt') as csvfile: dialekt = csv.Sniffer().sniff(csvfile.read(1024))